mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 11:16:24 +02:00
Fix login for container registries
This commit is contained in:
parent
83d8b8bf29
commit
0a5af7c571
1 changed files with 4 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -225,7 +225,7 @@ jobs:
|
|||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Create and push Manifest to GitHub
|
||||
|
@ -249,11 +249,13 @@ jobs:
|
|||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
if: ${{ (vars.DOCKER_USERNAME != '') && (secrets.DOCKERHUB_TOKEN != '') }}
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Create and push manifest to Docker Hub
|
||||
if: ${{ (vars.DOCKER_USERNAME != '') && (secrets.DOCKERHUB_TOKEN != '') }}
|
||||
run: |
|
||||
REPO_DOCKER="docker.io/${{ github.repository }}"
|
||||
SHA_TAG="${{ github.ref_name }}-${{ github.sha }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue