Skip to content

Commit f5d3791

Browse files
committed
ci(github): [skip ci] Conditionning docker step
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
1 parent d9705c8 commit f5d3791

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ jobs:
5656
export GIT_TAG="$(basename ${{ github.ref }})"
5757
scripts/release build assets clean
5858
- name: Docker
59+
if: ${{ env.docker_user != '' }}
5960
env:
60-
DOCKER_USER: ${{ secrets.DOCKER_USER }}
61+
DOCKER_USER: ${{ env.docker_user }}
6162
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
6263
run: |
6364
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "docker_promote"
64-
scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version-date)" "$(basename ${{ github.ref }})"
65+
scripts/docker_promote "${{ env.DOCKER_USER }}/$(make name)" "$(make version-date)" "$(basename ${{ github.ref }})"

0 commit comments

Comments
 (0)