Created
August 9, 2019 14:07
-
-
Save bigbeno37/e84a93bbdc466dff979dd23b554434b4 to your computer and use it in GitHub Desktop.
Gitlab auto deploy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: node:lts | |
before_script: | |
- eval $(ssh-agent -s) | |
- ssh-add <(echo "$VPS_KEY") | |
- mkdir -p ~/.ssh | |
cache: | |
paths: | |
- node_modules/ | |
install_dependencies: | |
stage: build | |
script: | |
- npm install | |
artifacts: | |
paths: | |
- node_modules | |
testing_testing: | |
stage: test | |
script: npm test | |
deploy: | |
stage: deploy | |
script: | |
- ssh -v -o StrictHostKeyChecking=no [email protected] "cd /root/pcpartreviewer && git pull" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment