[CI] don't try to login without credentials
Some checks failed
Containers / timestamp (push) Successful in 1s
Containers / release-trigger (push) Has been skipped
Containers / architectures (push) Failing after 2s
Containers / stable-release-trigger (push) Has been skipped
Containers / tags (push) Successful in 2s
Containers / releases (push) Has been skipped
Containers / git-tag (push) Has been skipped
Containers / stable-releases (push) Has been skipped
Containers / stable-git-tag (push) Has been skipped
Containers / dev-generic (push) Failing after 9s
Containers / candidates (push) Has been skipped

This commit is contained in:
Marius Alwan Meyer 2023-07-21 10:52:30 +02:00
parent 63dc1ad69c
commit 6a30314afd

View File

@ -576,6 +576,7 @@ jobs:
run: sudo apt-get install -y skopeo
- name: Login to GitHub Container Registry
id: ghcr-login
if: ${{ env.ghcr-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
@ -583,12 +584,14 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub
id: docker-hub-login
if: ${{ env.docker-hub-credentials == 'true' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de
@ -661,6 +664,7 @@ jobs:
run: sudo apt-get install -y skopeo
- name: Login to GitHub Container Registry
id: ghcr-login
if: ${{ env.ghcr-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
@ -668,12 +672,14 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub
id: docker-hub-login
if: ${{ env.docker-hub-credentials == 'true' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to Gitea
id: docker-hub-login
if: ${{ env.gitea-credentials == 'true' }}
uses: docker/login-action@v2
with:
registry: git.sporq.de