add in quay container registry

pull/200/head 4.5.2-1-02
binhex 2 years ago
parent c37183048a
commit 45fa2bccf0

@ -24,6 +24,12 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }} 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 - name: Login to GitLab
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
@ -62,6 +68,8 @@ jobs:
docker build \ docker build \
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \ --tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \ --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 }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \ --tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
--tag registry.gitlab.com/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \ --tag registry.gitlab.com/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
@ -83,6 +91,14 @@ jobs:
retry_wait_seconds: 120 retry_wait_seconds: 120
command: | command: |
docker push ${{ github.repository }}:${{ github.event.inputs.tags }} 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) - name: Push Docker image to GitHub Container Registry (GHCR)
uses: nick-fields/retry@v2 uses: nick-fields/retry@v2
with: with:

@ -22,6 +22,12 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }} 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 - name: Login to GitLab
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
@ -81,6 +87,9 @@ jobs:
--tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \ --tag ${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ${{ github.repository }}:latest \ --tag ${{ github.repository }}:latest \
--tag ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \ --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 }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
--tag ghcr.io/${{ github.repository }}:latest \ --tag ghcr.io/${{ github.repository }}:latest \
--tag ghcr.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \ --tag ghcr.io/${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} \
@ -114,6 +123,15 @@ jobs:
command: | command: |
docker push ${{ github.repository }}:latest docker push ${{ github.repository }}:latest
docker push ${{ github.repository }}:${{ steps.identify_github_release_tag_name.outputs.tag }} 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) - name: Push Docker image to GitHub Container Registry (GHCR)
uses: nick-fields/retry@v2 uses: nick-fields/retry@v2
with: with:

Loading…
Cancel
Save