Add cleanup stage
[skip ci]
This commit is contained in:
parent
4181d597a8
commit
a55295829f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user