From 1d6aa1748d8e731c8e7fcafb4258be553a283a48 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Fri, 26 Aug 2022 10:54:36 +0200 Subject: [PATCH] CI: Prevent docker release when hopeless [why] On forks for example they might have a docker repo associated or not. The release process is run in any case and will fail in that cases. [how] Check that at least the secret is known. Signed-off-by: Fini Jastrow --- .github/workflows/docker-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 4777afde8..1898da641 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -17,6 +17,7 @@ jobs: publish-image: name: Publish image runs-on: ubuntu-latest + if: ${{ secrets.DOCKER_USER }} steps: - uses: actions/checkout@v3 - name: Build image