Initial commit
This commit is contained in:
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
before_script:
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan 18.196.202.28 >> ~/.ssh/known_hosts
|
||||
script:
|
||||
- git remote add dokku dokku@18.196.202.28:saburly
|
||||
- git push dokku master
|
||||
only:
|
||||
- master
|
||||
Reference in New Issue
Block a user