Added step for deploy review

pull/211/head
Vladimir Volek 6 years ago
parent c70464cccd
commit cae4c6e9c1

@ -27,29 +27,42 @@ test:
script: script:
- yarn run test - yarn run test
build-development: build development:
stage: build stage: build
script: script:
- yarn run build:dev - yarn run build:dev
artifacts: artifacts:
expire_in: 1 month expire_in: 1 month
paths: paths:
- build/dev - /build
build-beta: build beta:
stage: build stage: build
script: script:
- yarn run build:beta - yarn run build:beta
artifacts: artifacts:
expire_in: 1 month expire_in: 1 month
paths: paths:
- build/beta - /build
build-production: build production:
stage: build stage: build
script: script:
- yarn run build:prod - yarn run build:prod
artifacts: artifacts:
expire_in: 1 month expire_in: 1 month
paths: paths:
- build/prod - /build
# deploy
deploy review:
stage: deploy
script:
- echo "Deploy a review app"
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG.example.com
only:
- branches
except:
- master
Loading…
Cancel
Save