mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 18:58:08 +00:00
Add stop review step
This commit is contained in:
parent
6be0ae37ea
commit
9d16c2891f
@ -71,6 +71,7 @@ deploy review:
|
|||||||
environment:
|
environment:
|
||||||
name: $CI_BUILD_REF_NAME
|
name: $CI_BUILD_REF_NAME
|
||||||
url: $BASE_REVIEW_URL/$CI_BUILD_REF_NAME
|
url: $BASE_REVIEW_URL/$CI_BUILD_REF_NAME
|
||||||
|
on_stop: delete review
|
||||||
script:
|
script:
|
||||||
- echo "Deploy a review app"
|
- echo "Deploy a review app"
|
||||||
- '[ -z "${DEPLOY_BASE_DIR}" ] && echo "Deploy base dir cannot be empty" && exit 255'
|
- '[ -z "${DEPLOY_BASE_DIR}" ] && echo "Deploy base dir cannot be empty" && exit 255'
|
||||||
@ -114,3 +115,22 @@ deploy stage stable:
|
|||||||
- stable
|
- stable
|
||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
delete review:
|
||||||
|
before_script: []
|
||||||
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
when: manual
|
||||||
|
environment:
|
||||||
|
name: $CI_BUILD_REF_NAME
|
||||||
|
action: stop
|
||||||
|
script:
|
||||||
|
- '[ -z "${DEPLOY_BASE_DIR}" ] && echo "Deploy dir can not be empty" && exit 1'
|
||||||
|
- '[ -z "${CI_BUILD_REF_NAME}" ] && echo "Build name can not be empty" && exit 1'
|
||||||
|
- '[ ! -d "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}" ] && echo "Folder can not be found, skipping..." && exit 0'
|
||||||
|
- 'rm -r "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}"'
|
||||||
|
only:
|
||||||
|
- branches
|
||||||
|
tags:
|
||||||
|
- deploy
|
||||||
|
Loading…
Reference in New Issue
Block a user