Skip to content

Commit 9901855

Browse files
committed
ci(docker): add docker scout
1 parent bbaf943 commit 9901855

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
IMAGE_NAME: ${{ github.repository }}
1616
DOCKER_USERNAME: ${{ github.actor }}
1717
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
18+
DOCKER_PLATFORMS: linux/amd64,linux/arm64
1819

1920
jobs:
2021
build:
@@ -34,6 +35,8 @@ jobs:
3435

3536
- name: Set up Docker Buildx
3637
uses: docker/setup-buildx-action@v3
38+
with:
39+
platforms: ${{ env.DOCKER_PLATFORMS }}
3740

3841
- name: Log into registry ${{ env.REGISTRY }}
3942
if: github.event_name != 'pull_request'
@@ -64,6 +67,7 @@ jobs:
6467
labels: ${{ steps.meta.outputs.labels }}
6568
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},mode=max
6669
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},mode=max
70+
platforms: ${{ env.DOCKER_PLATFORMS }}
6771

6872
- name: Sign the published Docker image
6973
if: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)