Skip to content
Snippets Groups Projects
Verified Commit 56dcaa7d authored by Lars Bilke's avatar Lars Bilke
Browse files

Fix ci tag build.

parent b68bb17d
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,9 @@ if local_args.ogs not in ["off", "clean"]: # != "off" and local_args.ogs != "cl ...@@ -141,7 +141,9 @@ if local_args.ogs not in ["off", "clean"]: # != "off" and local_args.ogs != "cl
with open(f"{local_args.ogs}/web/data/versions.json") as fp: with open(f"{local_args.ogs}/web/data/versions.json") as fp:
versions = json.load(fp) versions = json.load(fp)
if "GITLAB_CI" in os.environ: if "GITLAB_CI" in os.environ:
if "CI_COMMIT_BRANCH" in os.environ: if "CI_COMMIT_TAG" in os.environ:
branch = "master"
elif "CI_COMMIT_BRANCH" in os.environ:
branch = os.environ["CI_COMMIT_BRANCH"] branch = os.environ["CI_COMMIT_BRANCH"]
elif "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" in os.environ: elif "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" in os.environ:
branch = os.environ["CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"] branch = os.environ["CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment