Update .gitlab-ci.yml

This commit is contained in:
Ryuuji
2020-06-02 07:52:29 +00:00
parent 7573f764fb
commit 6b4b265c46

View File

@@ -4,7 +4,17 @@ cache:
paths:
- node_modules/
before_script:
- apt-get update -y && apt-get upgrade -y
- apt-get install rsync -y
- 'which ssh-agent || ( apt-get install openssh-client -y )'
- 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'
test_execution:
script:
- npm install
- ls -al
- npm run build
- rsync build ryuuji@142.93.158.54:~