From 375d166c1a6b2faa1f2eeb1b20ec824b65df8485 Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Sun, 11 Apr 2021 15:57:07 +0200 Subject: [PATCH] ci: Fixing condition with secrets Signed-off-by: Vincent Boutour --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cad0d6b..b4ece8e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,13 +47,13 @@ jobs: curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s "release" ./scripts/release build - name: Login to DockerHub - if: secrets.DOCKER_USER != "" && secrets.DOCKER_PASS != "" + if: ${{ secrets.DOCKER_USER }} != '' && ${{ secrets.DOCKER_PASS }} != '' uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASS }} - name: Docker - if: secrets.DOCKER_USER != "" && secrets.DOCKER_PASS != "" + if: ${{ secrets.DOCKER_USER }} != '' && ${{ secrets.DOCKER_PASS }} != '' run: | DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release docker