ci: fix should_push always being false (#12252)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -9,7 +9,7 @@ parser.read(".bumpversion.cfg")
|
|||||||
|
|
||||||
# Decide if we should push the image or not
|
# Decide if we should push the image or not
|
||||||
should_push = True
|
should_push = True
|
||||||
if len(os.environ.get("DOCKER_USERNAME", "")) > 0:
|
if len(os.environ.get("DOCKER_USERNAME", "")) < 1:
|
||||||
# Don't push if we don't have DOCKER_USERNAME, i.e. no secrets are available
|
# Don't push if we don't have DOCKER_USERNAME, i.e. no secrets are available
|
||||||
should_push = False
|
should_push = False
|
||||||
if os.environ.get("GITHUB_REPOSITORY").lower() == "goauthentik/authentik-internal":
|
if os.environ.get("GITHUB_REPOSITORY").lower() == "goauthentik/authentik-internal":
|
||||||
|
|||||||
Reference in New Issue
Block a user