From 89e2dc5b0288e561d0d0b757e9a158ca1f1801ef Mon Sep 17 00:00:00 2001 From: Janis Streib <me@janis-streib.de> Date: Sat, 30 Sep 2023 22:22:30 +0200 Subject: [PATCH] UPD: don't build hub-cli on deploy --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8a0491..e4d963c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ before_script: - python3 -V # Print out python version for debugging - pip3 install build - python3 -m venv || apt-get -y install python3-venv - - if [ $CI_COMMIT_BRANCH == "main" ]; then pip3 install git+https://git.scc.kit.edu/scc-net/netvs/netvs_hub_cli.git@main#egg=netvs_hub_cli; else pip3 install git+https://git.scc.kit.edu/scc-net/netvs/netvs_hub_cli.git@devel#egg=netvs_hub_cli; fi + - if [ $CI_COMMIT_BRANCH == "main" && $CI_JOB_STAGE != "deploy" ]; then pip3 install git+https://git.scc.kit.edu/scc-net/netvs/netvs_hub_cli.git@main#egg=netvs_hub_cli; else pip3 install git+https://git.scc.kit.edu/scc-net/netvs/netvs_hub_cli.git@devel#egg=netvs_hub_cli; fi stages: - check -- GitLab