Skip to content
Snippets Groups Projects
Commit 80f875b0 authored by Mathias Goebel's avatar Mathias Goebel :reminder_ribbon:
Browse files

ci: deployment to main

parent 6e4dd35a
No related branches found
No related tags found
1 merge request!36Release
Pipeline #215432 passed
...@@ -115,9 +115,23 @@ deploy-dev: ...@@ -115,9 +115,23 @@ deploy-dev:
# remove the old version from dev and test # remove the old version from dev and test
- ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*" - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*"
- ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/test/frontend/website/*" - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/test/frontend/website/*"
# install new version to dev and test
- scp -o 'StrictHostKeyChecking no' -r public/$CI_COMMIT_REF_NAME/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/ - scp -o 'StrictHostKeyChecking no' -r public/$CI_COMMIT_REF_NAME/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
- ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "cp -r ~/$CI_COMMIT_REF_NAME/frontend/website/* ~/test/frontend/website/" - ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "cp -r ~/$CI_COMMIT_REF_NAME/frontend/website/* ~/test/frontend/website/"
deploy-main:
stage: deploy_to_server
image: rsamban/scp-resource:latest
only:
- main
dependencies:
- build_page-main-backend
script:
- *ssh
- ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*"
- scp -o 'StrictHostKeyChecking no' -r public/$CI_COMMIT_REF_NAME/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
# this stage creates a new environment for the current branch. # this stage creates a new environment for the current branch.
pages: pages:
image: docker.gitlab.gwdg.de/mrodzis/docker-images/alpine image: docker.gitlab.gwdg.de/mrodzis/docker-images/alpine
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment