Merge branch 'master' into feature/context-menu
This commit is contained in:
commit
48aae3ddd5
1 changed files with 15 additions and 2 deletions
|
@ -5,7 +5,7 @@ stages: # List of stages for jobs, and their order of execution
|
||||||
|
|
||||||
image: debian
|
image: debian
|
||||||
|
|
||||||
docker-build:
|
docker-build-push:
|
||||||
# Use the official docker image.
|
# Use the official docker image.
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -30,6 +30,19 @@ docker-build:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
|
docker-build:
|
||||||
|
image: docker:latest
|
||||||
|
stage: build
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
before_script:
|
||||||
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
|
script:
|
||||||
|
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
||||||
|
except:
|
||||||
|
- master
|
||||||
|
- dev
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
- apt-get install -qq git
|
- apt-get install -qq git
|
||||||
|
@ -41,7 +54,7 @@ before_script:
|
||||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
|
|
||||||
deploy_staging:
|
deploy_staging:
|
||||||
type: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- ssh $SSH_SERVER "cd /root && docker-compose up -d bot && exit"
|
- ssh $SSH_SERVER "cd /root && docker-compose up -d bot && exit"
|
||||||
only:
|
only:
|
||||||
|
|
Loading…
Add table
Reference in a new issue