|
|
|
|
@ -4,6 +4,7 @@ stages:
|
|
|
|
|
|
|
|
|
|
build_frontend: |
|
|
|
|
stage: build |
|
|
|
|
tags: docker |
|
|
|
|
image: registry.gitlab.com/fia72-dev/eva_lernsituation/frontend-build |
|
|
|
|
before_script: |
|
|
|
|
- eval $(ssh-agent -s) |
|
|
|
|
@ -22,3 +23,7 @@ build_frontend:
|
|
|
|
|
- ssh $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET "rm -rf /home/$DEPLOY_ENV_USER/serve/*" |
|
|
|
|
- ssh $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET "mkdir -p /home/$DEPLOY_ENV_USER/serve/$CI_COMMIT_REF_NAME" |
|
|
|
|
- rsync --progress -av -e ssh /workdir/build/* $DEPLOY_ENV_USER@$DEPLOY_ENV_TARGET:/home/$DEPLOY_ENV_USER/serve/$CI_COMMIT_REF_NAME/ |
|
|
|
|
|
|
|
|
|
build_docker_host: |
|
|
|
|
stage: build |
|
|
|
|
|
|
|
|
|
|