Skip to content

Commit 912720b

Browse files
Update GitHub action to publish to multiple docker platforms.
1 parent 4cd786a commit 912720b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,24 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Log in to Docker Hub
23-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
23+
uses: docker/login-action@v3
2424
with:
2525
username: ${{ secrets.DOCKER_USERNAME }}
2626
password: ${{ secrets.DOCKER_PASSWORD }}
2727

2828
- name: Extract metadata for Docker
2929
id: meta
30-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
30+
uses: docker/metadata-action@v5
3131
with:
3232
images: ${{ secrets.DOCKER_REPOSITORY }}
3333

3434
- name: Build and push the Docker image
35-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
35+
uses: docker/build-push-action@v5
3636
with:
3737
context: .
3838
file: ./Dockerfile
3939
push: true
4040
tags: ${{ steps.meta.outputs.tags }}
4141
labels: ${{ steps.meta.outputs.labels }}
42+
platforms: linux/amd64,linux/arm64
43+

0 commit comments

Comments
 (0)