Skip to content
Snippets Groups Projects
Commit 0bce76d1 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

adding CI/CD pipeline

parent f49ca3e3
No related branches found
No related tags found
2 merge requests!8Esap gui dev,!7Esap gui dev
Pipeline #5860 failed
stages:
- build
- deploy
build:
stage: build
script:
- echo "Building deploy package"
- yarn install
- yarn build
- echo "Build successful"
artifacts:
expire_in: 1 hour
paths:
- build
deploy_production:
stage: deploy
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan sdc.astron.nl >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- echo "Deploying to server"
- scp -r build/* vermaas@sdc.astron.nl:~/temp
- echo "Deployed"
when: manual
only:
- esap-gui-dev
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