diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 7602376b..2c2c6333 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -82,7 +82,8 @@ jobs: })) build-image: runs-on: ubuntu-latest - + # only build if we can push to at least one registry + if: (env.GHCR_ENABLED == 'true ') || ((vars.DOCKER_USERNAME != '') && (env.DOCKERHUB_TOKEN != '')) || (vars.GITLAB_USERNAME != '') && (env.GITLAB_TOKEN != '') needs: define-variables # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. permissions: