mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-23 13:39:54 +05:30
Allow to deploy to the dev from non-master branch [deploy dev]
This commit is contained in:
parent
3b2fbb2cc4
commit
f7b0c10ba9
@ -191,7 +191,7 @@ Storybook:
|
|||||||
- sentry-cli releases deploys $VERSION new -e $CI_ENVIRONMENT_NAME
|
- sentry-cli releases deploys $VERSION new -e $CI_ENVIRONMENT_NAME
|
||||||
- sentry-cli releases finalize $VERSION
|
- sentry-cli releases finalize $VERSION
|
||||||
|
|
||||||
Deploy dev:
|
Dev:
|
||||||
extends:
|
extends:
|
||||||
- .deployJob
|
- .deployJob
|
||||||
environment:
|
environment:
|
||||||
@ -199,11 +199,15 @@ Deploy dev:
|
|||||||
variables:
|
variables:
|
||||||
VM_HOST_NAME: playground.ely.local
|
VM_HOST_NAME: playground.ely.local
|
||||||
VM_DEPLOY_PATH: /srv/dev.account.ely.by/frontend
|
VM_DEPLOY_PATH: /srv/dev.account.ely.by/frontend
|
||||||
only:
|
rules:
|
||||||
refs:
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||||
- master
|
when: on_success
|
||||||
|
- if: '$CI_COMMIT_MESSAGE =~ /\[deploy dev\]/'
|
||||||
|
when: on_success
|
||||||
|
# Default:
|
||||||
|
- when: never
|
||||||
|
|
||||||
Deploy prod:
|
Prod:
|
||||||
extends:
|
extends:
|
||||||
- .deployJob
|
- .deployJob
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@ -217,4 +221,5 @@ Deploy prod:
|
|||||||
when: never
|
when: never
|
||||||
- if: '$CI_COMMIT_MESSAGE =~ /\[deploy\]/'
|
- if: '$CI_COMMIT_MESSAGE =~ /\[deploy\]/'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
# Default:
|
||||||
- when: manual
|
- when: manual
|
||||||
|
Loading…
Reference in New Issue
Block a user