Skip to content
Snippets Groups Projects
Commit 6cdf897d authored by Ole Jonas Liahagen's avatar Ole Jonas Liahagen :speech_balloon:
Browse files

Update .gitlab-ci.yml

parent f0c93481
No related branches found
No related tags found
No related merge requests found
Pipeline #81607 passed
image: node:latest
stages:
- build # Jobs placed in build-stage will run first
- test # Jobs placed in test-stage will run after build-jobs
- deploy # Jobs placed in build-stage will run last after test-jobs
install:
stage: build
script:
- npm install
# Keep node_modules-folder for the following stages:
artifacts:
paths:
- node_modules
test:
stage: test # Job test will run in parallel with the job flow
script:
- npm test
flow:
stage: test # Job flow will run in parallel with the job test
script:
- npm install --global flow-bin
- flow check
deploy:
stage: deploy
script:
- mkdir ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
......@@ -10,5 +36,7 @@ deploy:
- apt-get update
- apt-get install --assume-yes rsync
- rsync --archive --delete --exclude='.git' --exclude='node_modules' . app1@129.241.96.149:app
- ssh app1@129.241.96.149 systemctl --user restart app
only:
- master
\ No newline at end of file
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment