Skip to content

Commit b6c007f

Browse files
committed
push to gitlab
1 parent f3348ba commit b6c007f

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ jobs:
1818
with:
1919
username: ${{ secrets.DOCKERHUB_USERNAME }}
2020
password: ${{ secrets.DOCKERHUB_TOKEN }}
21-
- name: Login to GitHub Container Registry
21+
- name: Login to GitHub
2222
uses: docker/login-action@v1
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.repository_owner }}
2626
password: ${{ secrets.CR_PAT }}
27+
- name: Login to GitLab
28+
uses: docker/login-action@v1
29+
with:
30+
registry: registry.gitlab.com
31+
username: ${{ secrets.GITLAB_USERNAME }}
32+
password: ${{ secrets.GITLAB_TOKEN }}
2733
- name: Show Runners environment (debug)
2834
uses: nick-invision/retry@v2.4.0
2935
with:
@@ -58,6 +64,8 @@ jobs:
5864
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
5965
--tag ghcr.io/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
6066
--tag ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }} \
67+
--tag registry.gitlab.com/${{ github.repository }}:${{ steps.generate_temporary_tag_name.outputs.test_tag }} \
68+
--tag registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }} \
6169
.
6270
- name: Run Tests
6371
shell: bash
@@ -82,4 +90,12 @@ jobs:
8290
max_attempts: 3
8391
retry_wait_seconds: 120
8492
command: |
85-
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
93+
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
94+
- name: Push Docker image to GitLab Container Registry (GCR)
95+
uses: nick-invision/retry@v2.4.0
96+
with:
97+
timeout_minutes: 30
98+
max_attempts: 3
99+
retry_wait_seconds: 120
100+
command: |
101+
docker push registry.gitlab.com/${{ github.repository }}:${{ github.event.inputs.tags }}

0 commit comments

Comments
 (0)