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

Commit

Permalink
push to gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Oct 21, 2021
1 parent b3673a3 commit 7cd2f41
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/workflow-docker-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
- name: Login to GitHub
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Login to GitLab
uses: docker/login-action@v1
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_USERNAME }}
password: ${{ secrets.GITLAB_TOKEN }}
- name: Show Runners environment (debug)
uses: nick-invision/retry@v2.4.0
with:
Expand Down Expand Up @@ -58,6 +64,8 @@ jobs:
--tag ${{ 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 }} \
--tag registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }} \
.
- name: Run Tests
shell: bash
Expand All @@ -82,4 +90,12 @@ jobs:
max_attempts: 3
retry_wait_seconds: 120
command: |
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
- name: Push Docker image to GitLab Container Registry (GCR)
uses: nick-invision/retry@v2.4.0
with:
timeout_minutes: 30
max_attempts: 3
retry_wait_seconds: 120
command: |
docker push registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }}

0 comments on commit 7cd2f41

Please sign in to comment.