Update .gitlab-ci.yml file
This commit is contained in:
parent
00489f6ea1
commit
a0b84014cd
1 changed files with 10 additions and 0 deletions
10
.gitlab-ci.yml
Normal file
10
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
before_script:
|
||||
- eval $(ssh-agent -s)
|
||||
- ssh-add <(echo "$SSH_PRIVATE_KEY")
|
||||
- mkdir -p ~/.ssh
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
deploy:
|
||||
script:
|
||||
- ssh $HOST "bash $SCRIPT_PATH"
|
||||
only:
|
||||
- master
|
Loading…
Add table
Reference in a new issue