diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb75e53da512545ac3a1a5889db3f96d7c545805..bd398cef7f47ea69385bef7aee087b5f4b1cac88 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,3 +38,23 @@ deploy-esap-gui: when: manual only: - 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 diff --git a/src/routes/Routes.js b/src/routes/Routes.js index 6f02266857301572581fa35bdd5957ad68574afb..de53a547af37ae87e090b5cadecbfb39b0a1df34 100644 --- a/src/routes/Routes.js +++ b/src/routes/Routes.js @@ -51,7 +51,7 @@ export default function Routes() { </Route> <Route exact path="/samp" component={SampPage} /> </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> ); }