File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99name : Docker Hub Build and Push (Multi-arch)
1010
1111env :
12- REPO_NAME : docker.io/ panubo/sshd
12+ REPO_NAME : panubo/sshd
1313
1414on :
1515 schedule :
@@ -29,11 +29,12 @@ jobs:
2929
3030 - name : Docker meta
3131 id : meta
32- uses : docker/metadata-action@v3
32+ uses : docker/metadata-action@v4
3333 with :
3434 # list of Docker images to use as base name for tags
3535 images : |
36- ${{ env.REPO_NAME }}
36+ docker.io/${{ env.REPO_NAME }}
37+ quay.io/${{ env.REPO_NAME }}
3738 # generate Docker tags based on the following events/attributes
3839 tags : |
3940 type=schedule,pattern=weekly
4243 type=semver,pattern={{major}}.{{minor}}
4344
4445 - name : Set up QEMU
45- uses : docker/setup-qemu-action@v1
46+ uses : docker/setup-qemu-action@v2
4647
4748 - name : Set up Docker Buildx
4849 id : buildx
5556 username : ${{ secrets.PANUBUILD_DOCKERHUB_USERNAME }}
5657 password : ${{ secrets.PANUBUILD_DOCKERHUB_TOKEN }}
5758
59+ - name : Login to Quay.io
60+ if : github.event_name != 'pull_request'
61+ uses : docker/login-action@v2
62+ with :
63+ registry : quay.io
64+ username : ${{ secrets.PANUBUILD_QUAYIO_USERNAME }}
65+ password : ${{ secrets.PANUBUILD_QUAYIO_TOKEN }}
66+
5867 - name : Build and Push
5968 uses : docker/build-push-action@v3
6069 with :
You can’t perform that action at this time.
0 commit comments