Skip to content
Snippets Groups Projects

feature(core): deploy after script

Merged Sebastian Pisula requested to merge feature/after-script into main
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -11,6 +11,7 @@ variables:
STAGE_DEPLOY_USER: wlgmnfabmq
STAGE_DEPLOY_DIR: ""
RUN_AFTER_DEPLOY: "pwd"
DEPLOY_AFTER_SCRIPT: ""
PREDATORS_GROUP_ID: 788
stages:
@@ -55,6 +56,8 @@ stages:
- 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
- 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
<<: *deploy-template
Loading