diff options
Diffstat (limited to '.github/workflows/update-base.yaml')
-rw-r--r-- | .github/workflows/update-base.yaml | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/.github/workflows/update-base.yaml b/.github/workflows/update-base.yaml index 081480492a..6cf2eafac2 100644 --- a/.github/workflows/update-base.yaml +++ b/.github/workflows/update-base.yaml @@ -20,10 +20,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - with: - driver: docker - name: Docker login uses: docker/login-action@v1 with: @@ -32,13 +28,14 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Calculate BASE image id: base - run: .github/scripts/base-tag "${{ matrix.type }}" - - name: Build and push base image - uses: docker/build-push-action@v2 - with: - context: . - file: .github/dockerfiles/Dockerfile.${{ steps.base.outputs.BASE_TYPE }} - pull: true - push: true - build-args: BASE=${{ steps.base.outputs.BASE }} - tags: docker.pkg.github.com/${{ github.repository }}/${{ matrix.type }}:latest + run: | + echo "::set-output name=BASE_TAG::docker.pkg.github.com/erlang/otp/${{ matrix.type }}" + .github/scripts/base-tag "${{ matrix.type }}" + - name: Build base image + run: | + docker build --pull --tag ${{ steps.base.outputs.BASE_TAG }} \ + --cache-from ${{ steps.base.outputs.BASE_TAG }} \ + --file .github/dockerfiles/Dockerfile.${{ steps.base.outputs.BASE_TYPE }} \ + --build-arg BASE=${{ steps.base.outputs.BASE }} . + - name: Push base image + run: docker push ${{ steps.base.outputs.BASE_TAG }} |