Skip to content
Snippets Groups Projects
Commit eba4102e authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'feature/runafter-deploy' into 'main'

Feature/runafter deploy

See merge request !3
parents d02337c2 03c6c734
No related branches found
No related tags found
1 merge request!3Feature/runafter deploy
...@@ -10,6 +10,7 @@ variables: ...@@ -10,6 +10,7 @@ variables:
STAGE_DEPLOY_HOST: s125.cyber-folks.pl STAGE_DEPLOY_HOST: s125.cyber-folks.pl
STAGE_DEPLOY_USER: wlgmnfabmq STAGE_DEPLOY_USER: wlgmnfabmq
STAGE_DEPLOY_DIR: "" STAGE_DEPLOY_DIR: ""
RUN_AFTER_DEPLOY: "pwd"
stages: stages:
- build - build
...@@ -49,7 +50,7 @@ stages: ...@@ -49,7 +50,7 @@ stages:
- ls -al - ls -al
- 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" - 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"
.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.
Please register or to comment