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

Merge commit 'stash' into develop

parents 35bd8169 821463c9
No related branches found
No related tags found
1 merge request!36Release
......@@ -33,6 +33,14 @@
paths:
- public/
.ssh-config: &ssh
- which ssh-agent
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- alias scp="scp -o 'StrictHostKeyChecking no'"
- alias ssh="ssh -o 'StrictHostKeyChecking no' $SSH_USER@$SSH_IP"
cache:
paths:
......@@ -55,6 +63,7 @@ variables:
stages:
- pre-build
- build
- deploy_to_server
- pages
- preserve-pages
- remove_unused_envs
......@@ -96,6 +105,18 @@ build_page-main-backend:
VUE_APP_PUBLIC_PATH: "${BASE_BACKEND}"
<<: *build-defaults
deploy-dev:
stage: deploy-to-server
image: rsamban/scp-resource:latest
only:
- develop
dependencies:
- build_page-develop-backend
script:
- *ssh
# remove the old version
- ssh "rm -rf ~/$CI_COMMIT_REF_NAME/frontend/website/*"
- scp -r public/* $SSH_USER@$SSH_IP:~/$CI_COMMIT_REF_NAME/frontend/website/
# this stage creates a new environment for the current branch.
pages:
......
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