Skip to content

Commit

Permalink
Enable multiplatform builds for docker image
Browse files Browse the repository at this point in the history
Builds amd64, arm64, and arm64/v7 images by default
enables sbom
adds buildx action
  • Loading branch information
khakers committed Dec 9, 2023
1 parent ecd7302 commit ba41b1a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand All @@ -37,7 +40,6 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern=nightly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
Expand All @@ -52,5 +54,10 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64, linux/arm64/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit ba41b1a

Please sign in to comment.