Commit 242553ee authored by Tom Käsler's avatar Tom Käsler

add CI jobs

parent d4b76d89
stages:
- build
- deploy
build:
stage: build
only:
- master
tags:
- nodejs
script:
- cd frontend
- npm install
- npm run prod
artifacts:
paths:
- frontend/dist
deploy:
stage: deploy
only:
- master
tags:
- ssh
dependencies:
- build
script:
- chmod -R a+rX,ug+w backend
- chmod -R a+rX,ug+w frontend
- eval $(ssh-agent -s)
- mkdir ~/.ssh && echo "$STAGING_SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- ssh-add <(echo "$STAGING_SSH_PRIVATE_KEY")
- scp -r frontend/dist/* "$STAGING_FRONTEND_SSH_URL"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment