Skip to content

Commit 3cb88d2

Browse files
committed
add in quay container registry
1 parent 7e983f4 commit 3cb88d2

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/workflow-docker-manual.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
registry: ghcr.io
2525
username: ${{ github.repository_owner }}
2626
password: ${{ secrets.CR_PAT }}
27+
- name: Login to Quay
28+
uses: docker/login-action@v2
29+
with:
30+
registry: quay.io
31+
username: ${{ secrets.QUAY_USERNAME }}
32+
password: ${{ secrets.QUAY_TOKEN }}
2733
- name: Login to GitLab
2834
uses: docker/login-action@v2
2935
with:
@@ -62,6 +68,8 @@ jobs:
6268
docker build \
6369
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
6470
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
71+
--tag quay.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
72+
--tag quay.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
6573
--tag ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
6674
--tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
6775
--tag registry.gitlab.com/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
@@ -83,6 +91,14 @@ jobs:
8391
retry_wait_seconds: 120
8492
command: |
8593
docker push ${{ github.repository }}:${{ github.event.inputs.tags }}
94+
- name: Push Docker image to Quay Container Registry
95+
uses: nick-fields/retry@v2
96+
with:
97+
timeout_minutes: 30
98+
max_attempts: 3
99+
retry_wait_seconds: 120
100+
command: |
101+
docker push quay.io/${{ github.repository }}:${{ github.event.inputs.tags }}
86102
- name: Push Docker image to GitHub Container Registry (GHCR)
87103
uses: nick-fields/retry@v2
88104
with:

.github/workflows/workflow-docker-release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
registry: ghcr.io
2323
username: ${{ github.repository_owner }}
2424
password: ${{ secrets.CR_PAT }}
25+
- name: Login to Quay
26+
uses: docker/login-action@v2
27+
with:
28+
registry: quay.io
29+
username: ${{ secrets.QUAY_USERNAME }}
30+
password: ${{ secrets.QUAY_TOKEN }}
2531
- name: Login to GitLab
2632
uses: docker/login-action@v2
2733
with:
@@ -81,6 +87,9 @@ jobs:
8187
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
8288
--tag ${{ github.repository }}:latest \
8389
--tag ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
90+
--tag quay.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
91+
--tag quay.io/${{ github.repository }}:latest \
92+
--tag quay.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
8493
--tag ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
8594
--tag ghcr.io/${{ github.repository }}:latest \
8695
--tag ghcr.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
@@ -114,6 +123,15 @@ jobs:
114123
command: |
115124
docker push ${{ github.repository }}:latest
116125
docker push ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }}
126+
- name: Push Docker image to Quay Container Registry
127+
uses: nick-fields/retry@v2
128+
with:
129+
timeout_minutes: 30
130+
max_attempts: 3
131+
retry_wait_seconds: 120
132+
command: |
133+
docker push quay.io/${{ github.repository }}:latest
134+
docker push quay.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }}
117135
- name: Push Docker image to GitHub Container Registry (GHCR)
118136
uses: nick-fields/retry@v2
119137
with:

0 commit comments

Comments
 (0)