reenable cicd
This commit is contained in:
parent
708036b2eb
commit
9bac3c953a
1 changed files with 30 additions and 30 deletions
|
@ -58,34 +58,34 @@ container_scanning:
|
||||||
stage: test
|
stage: test
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
#deploy_dev:
|
deploy_dev:
|
||||||
# stage: deploy
|
stage: deploy
|
||||||
# image: debian
|
image: debian
|
||||||
# before_script:
|
before_script:
|
||||||
# - apt-get update -qq
|
- apt-get update -qq
|
||||||
# - 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
||||||
# - eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
|
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||||
# - mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
# script:
|
script:
|
||||||
# - ssh $SSH_SERVER "cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev && exit"
|
- ssh $SSH_SERVER "cd /root && docker-compose -f shbot-dev.yaml pull shbot-dev && docker-compose -f shbot-dev.yaml up -d shbot-dev && exit"
|
||||||
# only:
|
only:
|
||||||
# - dev
|
- dev
|
||||||
# - merge_requests
|
- merge_requests
|
||||||
#
|
|
||||||
#deploy_staging:
|
deploy_staging:
|
||||||
# stage: deploy
|
stage: deploy
|
||||||
# image: debian
|
image: debian
|
||||||
# before_script:
|
before_script:
|
||||||
# - apt-get update -qq
|
- apt-get update -qq
|
||||||
# - 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
|
||||||
# - eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
|
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||||
# - mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
# script:
|
script:
|
||||||
# - ssh $SSH_SERVER "cd /root && docker-compose pull shbot && docker-compose up -d shbot && exit"
|
- ssh $SSH_SERVER "cd /root && docker-compose pull shbot && docker-compose up -d shbot && exit"
|
||||||
# only:
|
only:
|
||||||
# - master
|
- master
|
||||||
|
|
Loading…
Reference in a new issue