Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
add in quay container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Mar 16, 2023
1 parent b92e68c commit c33f255
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/workflow-docker-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Login to GitLab
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -62,6 +68,8 @@ jobs:
docker build \
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
--tag quay.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag quay.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
--tag ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
--tag registry.gitlab.com/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
Expand All @@ -83,6 +91,14 @@ jobs:
retry_wait_seconds: 120
command: |
docker push ${{ github.repository }}:${{ github.event.inputs.tags }}
- name: Push Docker image to Quay Container Registry
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
max_attempts: 3
retry_wait_seconds: 120
command: |
docker push quay.io/${{ github.repository }}:${{ github.event.inputs.tags }}
- name: Push Docker image to GitHub Container Registry (GHCR)
uses: nick-fields/retry@v2
with:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/workflow-docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Login to GitLab
uses: docker/login-action@v2
with:
Expand Down Expand Up @@ -81,6 +87,9 @@ jobs:
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ${{ github.repository }}:latest \
--tag ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
--tag quay.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag quay.io/${{ github.repository }}:latest \
--tag quay.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
--tag ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ghcr.io/${{ github.repository }}:latest \
--tag ghcr.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
Expand Down Expand Up @@ -114,6 +123,15 @@ jobs:
command: |
docker push ${{ github.repository }}:latest
docker push ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }}
- name: Push Docker image to Quay Container Registry
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
max_attempts: 3
retry_wait_seconds: 120
command: |
docker push quay.io/${{ github.repository }}:latest
docker push quay.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }}
- name: Push Docker image to GitHub Container Registry (GHCR)
uses: nick-fields/retry@v2
with:
Expand Down

0 comments on commit c33f255

Please sign in to comment.