Skip to content
Snippets Groups Projects
Commit c4944d1e authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

feature(core): deploy after script

parent 9da763a1
No related branches found
No related tags found
1 merge request!13feature(core): deploy after script
Pipeline #280479 skipped with stage
...@@ -11,6 +11,7 @@ variables: ...@@ -11,6 +11,7 @@ variables:
STAGE_DEPLOY_USER: wlgmnfabmq STAGE_DEPLOY_USER: wlgmnfabmq
STAGE_DEPLOY_DIR: "" STAGE_DEPLOY_DIR: ""
RUN_AFTER_DEPLOY: "pwd" RUN_AFTER_DEPLOY: "pwd"
DEPLOY_AFTER_SCRIPT: ""
PREDATORS_GROUP_ID: 788 PREDATORS_GROUP_ID: 788
stages: stages:
...@@ -55,6 +56,8 @@ stages: ...@@ -55,6 +56,8 @@ stages:
- ssh-keyscan -H -p 222 $DEPLOY_HOST >> ~/.ssh/known_hosts - ssh-keyscan -H -p 222 $DEPLOY_HOST >> ~/.ssh/known_hosts
- rsync -v --delete -rlDe 'ssh -p 222 -v -i ~/.ssh/id_rsa_demo_fs' --exclude-from=.distignore ${CI_PROJECT_DIR}/web/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR - rsync -v --delete -rlDe 'ssh -p 222 -v -i ~/.ssh/id_rsa_demo_fs' --exclude-from=.distignore ${CI_PROJECT_DIR}/web/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR
- ssh -p 222 -i ~/.ssh/id_rsa_demo_fs $DEPLOY_USER@$DEPLOY_HOST "cd $DEPLOY_DIR && mv frontend/dist/assets/ public/ && mv frontend/dist/index.html public/index.html && php81 bin/console doctrine:migrations:migrate --no-interaction && php81 bin/console cache:clear && $RUN_AFTER_DEPLOY" - ssh -p 222 -i ~/.ssh/id_rsa_demo_fs $DEPLOY_USER@$DEPLOY_HOST "cd $DEPLOY_DIR && mv frontend/dist/assets/ public/ && mv frontend/dist/index.html public/index.html && php81 bin/console doctrine:migrations:migrate --no-interaction && php81 bin/console cache:clear && $RUN_AFTER_DEPLOY"
after_script:
- $DEPLOY_AFTER_SCRIPT
.template: &deploy-to-stage .template: &deploy-to-stage
<<: *deploy-template <<: *deploy-template
......
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