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

adding CI/CD pipeline for acceptance

parent 87708ef7
No related branches found
No related tags found
No related merge requests found
Pipeline #10975 failed
...@@ -38,3 +38,23 @@ deploy-esap-gui: ...@@ -38,3 +38,23 @@ deploy-esap-gui:
when: manual when: manual
only: only:
- esap-gui-dev - esap-gui-dev
- master
deploy-esap-gui-acceptance:
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 dop457.astron.nl >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- echo "Deploying to server"
- scp -r build/static/* vermaas@dop457.astron.nl:/data/shared/static
- scp -r build/* vermaas@dop457.astron.nl:/data/shared/public_html/esap-gui
- echo "Deployed"
when: manual
only:
- acceptance
...@@ -51,7 +51,7 @@ export default function Routes() { ...@@ -51,7 +51,7 @@ export default function Routes() {
</Route> </Route>
<Route exact path="/samp" component={SampPage} /> <Route exact path="/samp" component={SampPage} />
</Switch> </Switch>
<footer><small>esap-gui version 23 feb 2021 15:00</small></footer> <footer><small>esap-gui version 23 march 2021 14:00</small></footer>
</Router> </Router>
); );
} }
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