mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 11:16:24 +02:00
Move secrets usage to env definition
This commit is contained in:
parent
893566378c
commit
268d668107
1 changed files with 10 additions and 4 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -186,13 +186,19 @@ jobs:
|
|||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
if: ${{ (vars.DOCKER_USERNAME != '') && (secrets.DOCKERHUB_TOKEN != '') }}
|
||||
env:
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
if: ${{ (env.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }}
|
||||
with:
|
||||
username: ${{ vars.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
username: ${{ env.DOCKER_USERNAME }}
|
||||
password: ${{ env.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Create and push manifest to Docker Hub
|
||||
if: ${{ (vars.DOCKER_USERNAME != '') && (secrets.DOCKERHUB_TOKEN != '') }}
|
||||
env:
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||
if: ${{ (env.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '') }}
|
||||
run: |
|
||||
REPO_DOCKER="docker.io/${{ github.repository }}"
|
||||
SHA_TAG="${{ github.ref_name }}-${{ github.sha }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue