Update .gitlab-ci.yml file

This commit is contained in:
Luna 2021-05-08 22:20:34 +00:00
parent 00489f6ea1
commit a0b84014cd

10
.gitlab-ci.yml Normal file
View 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