Update .gitlab-ci.yml
This commit is contained in:
@@ -3,8 +3,18 @@ image: node:latest
|
|||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- 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:
|
test_execution:
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- ls -al
|
- npm run build
|
||||||
|
- rsync build ryuuji@142.93.158.54:~
|
||||||
Reference in New Issue
Block a user