From a55295829f731d2aecca6e091823c3fbefe3c22d Mon Sep 17 00:00:00 2001 From: Ivan Usov <ivan.usov@psi.ch> Date: Thu, 5 Sep 2024 11:05:13 +0200 Subject: [PATCH] Add cleanup stage [skip ci] --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea32098..0d1752b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - build-and-publish - deploy + - cleanup build-and-publish: stage: build-and-publish @@ -25,7 +26,6 @@ deploy-test: - conda activate test - conda build ./conda-recipe - conda install --use-local --only-deps pyzebra -y - - conda build purge-all - sudo systemctl restart pyzebra-test.service deploy-prod: @@ -41,3 +41,8 @@ deploy-prod: - conda activate prod - conda update pyzebra -y - sudo systemctl restart pyzebra-prod.service + +cleanup-job: + stage: cleanup + script: + - conda build purge-all -- GitLab