Skip to content

Commit ba41b1a

Browse files
authored
Enable multiplatform builds for docker image
Builds amd64, arm64, and arm64/v7 images by default enables sbom adds buildx action
1 parent ecd7302 commit ba41b1a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Checkout repository
2525
uses: actions/checkout@v3
2626

27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
2730
- name: Log in to the Container registry
2831
uses: docker/login-action@v2
2932
with:
@@ -37,7 +40,6 @@ jobs:
3740
with:
3841
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3942
tags: |
40-
type=schedule,pattern=nightly
4143
type=semver,pattern={{version}}
4244
type=semver,pattern={{major}}.{{minor}}
4345
type=semver,pattern={{major}}
@@ -52,5 +54,10 @@ jobs:
5254
with:
5355
context: .
5456
push: true
57+
platforms: linux/amd64,linux/arm64, linux/arm64/v7
5558
tags: ${{ steps.meta.outputs.tags }}
5659
labels: ${{ steps.meta.outputs.labels }}
60+
sbom: true
61+
cache-from: type=gha
62+
cache-to: type=gha,mode=max
63+

0 commit comments

Comments
 (0)