Skip to content

Commit 90eeba5

Browse files
committed
Update to push image to quay.io
1 parent c4ba8f9 commit 90eeba5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/dockerhub-build-push-multi-arch.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: Docker Hub Build and Push (Multi-arch)
1010

1111
env:
12-
REPO_NAME: docker.io/panubo/sshd
12+
REPO_NAME: panubo/sshd
1313

1414
on:
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
@@ -42,7 +43,7 @@ jobs:
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
@@ -55,6 +56,14 @@ jobs:
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:

0 commit comments

Comments
 (0)