Update .gitlab-ci.yml file

This commit is contained in:
Aaron Riedel 2022-03-06 10:36:37 +00:00
parent b257103901
commit 4849bafce3

View file

@ -31,8 +31,9 @@ docker-build:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
exists: exists:
- Dockerfile - Dockerfile
- if: ($CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "dev") only:
when: always - master
- dev
before_script: before_script:
- apt-get update -qq - apt-get update -qq
@ -47,7 +48,7 @@ before_script:
deploy_staging: deploy_staging:
type: deploy type: deploy
script: script:
- ssh $SSH_SERVER "cd /root && docker-compose up -d shbot && exit" - ssh $SSH_SERVER "cd /root && docker-compose up -d bot && exit"
only: only:
- master - master