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"