From 736bcd13a25e14a8b09e99072780d9886c6cb10d Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Thu, 18 Jul 2024 21:18:15 +0200 Subject: [PATCH] ci: [skip-ci] Updating condition for running Docker Signed-off-by: Vincent Boutour --- .github/workflows/build.yaml | 1 + .github/workflows/release.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2e1a6de..83bb104 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -96,6 +96,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Publish + if: env.DOCKER_USER && env.DOCKER_PASS env: DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_PASS: ${{ secrets.DOCKER_PASS }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 46584b0..bfba076 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,9 +57,9 @@ jobs: export GIT_TAG="$(basename ${{ github.ref }})" scripts/release.sh build assets clean - name: Docker - if: ${{ env.docker_user != '' }} + if: env.DOCKER_USER && env.DOCKER_PASS env: - DOCKER_USER: ${{ env.docker_user }} + DOCKER_USER: ${{ secrets.DOCKER_USER }} DOCKER_PASS: ${{ secrets.DOCKER_PASS }} run: | curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap.sh" | bash -s -- "-c" "docker_promote.sh"