Skip to content

Commit

Permalink
Update docker build action dependencies
Browse files Browse the repository at this point in the history
This commit updates some of the docker action dependencies
to fix issues related to the latest versions of buildx.

- Updates docker/setup-buildx-action to v2
- Updates docker/build-push-action to v4
- Adds the `provenance: false` property to build-push-action
  to fix issue with multi-arch builds. See
  docker/setup-buildx-action#187
  • Loading branch information
zachhannum committed Feb 14, 2023
1 parent 2291aa9 commit ad9a6e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-build.yaml
Expand Up @@ -24,27 +24,29 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v2
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and Push Versioned Docker Image
id: build-and-push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: ${{ github.ref != 'refs/heads/main' }}
with:
context: .
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and Push Latest Docker Image
id: build-and-push-latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
context: .
push: true
provenance: false
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit ad9a6e6

Please sign in to comment.