mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-27 02:12:36 +00:00
Automatically deploy review branches to dev server
This commit is contained in:
parent
835906bf96
commit
0aa1cb75ed
@ -40,6 +40,7 @@ build beta:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- yarn run build:beta
|
- yarn run build:beta
|
||||||
|
when: manual
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 month
|
expire_in: 1 month
|
||||||
paths:
|
paths:
|
||||||
@ -49,20 +50,26 @@ build production:
|
|||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- yarn run build:stable
|
- yarn run build:stable
|
||||||
|
when: manual
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 month
|
expire_in: 1 month
|
||||||
paths:
|
paths:
|
||||||
- build/stable
|
- build/stable
|
||||||
|
|
||||||
# deploy
|
|
||||||
deploy review:
|
deploy review:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
dependencies:
|
||||||
|
- build development
|
||||||
script:
|
script:
|
||||||
- echo "Deploy a review app"
|
- echo "Deploy a review app"
|
||||||
environment:
|
- '[ -z "${DEPLOY_BASE_DIR}" ] && echo "Deploy base dir cannot be empty" && exit 255'
|
||||||
name: review/$CI_COMMIT_REF_NAME
|
- env
|
||||||
url: https://$CI_ENVIRONMENT_SLUG.example.com
|
- mkdir -p "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}"
|
||||||
|
- echo "Copy dev build to web server ${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}..."
|
||||||
|
- rsync --delete -va build/dev/ "${DEPLOY_BASE_DIR}/${CI_BUILD_REF_NAME}/"
|
||||||
only:
|
only:
|
||||||
- branches
|
- branches
|
||||||
except:
|
tags:
|
||||||
- master
|
- deploy
|
||||||
|
Loading…
Reference in New Issue
Block a user