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

WIP on develop: fc0aedeb chore: nice qutation marks in ci file

parents fc0aedeb 767c7266
No related branches found
No related tags found
1 merge request!36Release
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
paths: paths:
- public/ - 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: cache:
paths: paths:
...@@ -50,6 +58,7 @@ variables: ...@@ -50,6 +58,7 @@ variables:
stages: stages:
- pre-build - pre-build
- build - build
- deploy_to_server
- pages - pages
- preserve-pages - preserve-pages
- remove_unused_envs - remove_unused_envs
...@@ -91,6 +100,18 @@ build_page-main-backend: ...@@ -91,6 +100,18 @@ build_page-main-backend:
VUE_APP_PUBLIC_PATH: "${BASE_BACKEND}" VUE_APP_PUBLIC_PATH: "${BASE_BACKEND}"
<<: *build-defaults <<: *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. # this stage creates a new environment for the current branch.
pages: pages:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment