File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed
Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 1- name : Publish Docker Image
1+ name : Publish Multi-Arch Docker Image
22
33on :
44 push :
55 tags :
6- - ' *'
6+ - ' *'
77
88jobs :
9- build-and-push-image :
10- strategy :
11- matrix :
12- include :
13- - platform : linux/amd64
14- runner : ubuntu-24.04
15- arch : amd64
16- - platform : linux/arm64
17- runner : ubuntu-24.04-arm
18- arch : arm64
19- runs-on : ${{ matrix.runner }}
9+ build :
10+ runs-on : ubuntu-24.04
2011 permissions :
2112 contents : read
2213 packages : write
@@ -34,26 +25,26 @@ jobs:
3425 username : ${{ secrets.DOCKER_USERNAME }}
3526 password : ${{ secrets.DOCKER_PASSWORD }}
3627
37- - name : Log in to the Container registry
28+ - name : Log in to GitHub Container Registry
3829 uses : docker/login-action@v3
3930 with :
4031 registry : ghcr.io
4132 username : ${{ github.actor }}
4233 password : ${{ secrets.GITHUB_TOKEN }}
4334
44- - name : Extract tags and labels for Docker
35+ - name : Extract Docker metadata
4536 id : meta
4637 uses : docker/metadata-action@v5
4738 with :
4839 images : |
4940 openhv/server
5041 ghcr.io/${{ github.repository }}
5142
52- - name : Build and push Docker image
43+ - name : Build and Push Multi-Arch Docker Image
5344 uses : docker/build-push-action@v6
5445 with :
5546 context : .
56- platforms : ${{ matrix.platform }}
5747 push : true
48+ platforms : linux/amd64,linux/arm64
5849 tags : ${{ steps.meta.outputs.tags }}
5950 labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments