Update .gitlab-ci.yml file
This commit is contained in:
parent
b257103901
commit
4849bafce3
1 changed files with 4 additions and 3 deletions
|
@ -31,8 +31,9 @@ docker-build:
|
|||
- if: $CI_COMMIT_BRANCH
|
||||
exists:
|
||||
- Dockerfile
|
||||
- if: ($CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "dev")
|
||||
when: always
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
|
@ -47,7 +48,7 @@ before_script:
|
|||
deploy_staging:
|
||||
type: deploy
|
||||
script:
|
||||
- ssh $SSH_SERVER "cd /root && docker-compose up -d shbot && exit"
|
||||
- ssh $SSH_SERVER "cd /root && docker-compose up -d bot && exit"
|
||||
only:
|
||||
- master
|
||||
|
Loading…
Reference in a new issue