Add cleanup stage
[skip ci]
This commit is contained in:
parent
4181d597a8
commit
a55295829f
@ -1,6 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build-and-publish
|
- build-and-publish
|
||||||
- deploy
|
- deploy
|
||||||
|
- cleanup
|
||||||
|
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
stage: build-and-publish
|
stage: build-and-publish
|
||||||
@ -25,7 +26,6 @@ deploy-test:
|
|||||||
- conda activate test
|
- conda activate test
|
||||||
- conda build ./conda-recipe
|
- conda build ./conda-recipe
|
||||||
- conda install --use-local --only-deps pyzebra -y
|
- conda install --use-local --only-deps pyzebra -y
|
||||||
- conda build purge-all
|
|
||||||
- sudo systemctl restart pyzebra-test.service
|
- sudo systemctl restart pyzebra-test.service
|
||||||
|
|
||||||
deploy-prod:
|
deploy-prod:
|
||||||
@ -41,3 +41,8 @@ deploy-prod:
|
|||||||
- conda activate prod
|
- conda activate prod
|
||||||
- conda update pyzebra -y
|
- conda update pyzebra -y
|
||||||
- sudo systemctl restart pyzebra-prod.service
|
- sudo systemctl restart pyzebra-prod.service
|
||||||
|
|
||||||
|
cleanup-job:
|
||||||
|
stage: cleanup
|
||||||
|
script:
|
||||||
|
- conda build purge-all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user