File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ deploy:
111111
112112 # Connect to the VPS and deploy the application
113113 - echo "Deploying application"
114- - ssh -i ~/.ssh/id_rsa $VPS_USER@$HOST_URL "cd /home/$VPS_USER/$CI_PROJECT_NAME && set -a && source .env && set +a && echo 'Debugging .env file:' && cat .env && echo 'Extracted FRONTEND_IMAGE:' && grep FRONTEND_IMAGE .env | cut -d '=' -f2 && echo 'Extracted BACKEND_IMAGE:' && grep BACKEND_IMAGE .env | cut -d '=' -f2 && docker pull \$(grep FRONTEND_IMAGE .env | cut -d '=' -f2) && docker pull \$(grep BACKEND_IMAGE .env | cut -d '=' -f2) && if [[ \"$CI_COMMIT_BRANCH\" == \"staging\" ]]; then docker compose -f docker-compose.staging.yml up -d; else docker compose -f docker-compose.production.yml up -d; fi"
114+ - ssh -i ~/.ssh/id_rsa $VPS_USER@$HOST_URL "cd /home/$VPS_USER/$CI_PROJECT_NAME && set -a && source .env && set +a && echo 'Debugging .env file:' && cat .env && echo 'Extracted FRONTEND_IMAGE:' && grep FRONTEND_IMAGE .env | cut -d '=' -f2 && echo 'Extracted BACKEND_IMAGE:' && grep BACKEND_IMAGE .env | cut -d '=' -f2 && docker pull \$(grep FRONTEND_IMAGE .env | cut -d '=' -f2) && docker pull \$(grep BACKEND_IMAGE .env | cut -d '=' -f2) && if [[ \"$CI_COMMIT_BRANCH\" == \"staging\" ]]; then docker compose -p staging_project - f docker-compose.staging.yml up -d; else docker compose -p production_project -f docker-compose.production.yml up -d; fi"
115115
116116 - ssh $VPS_USER@$HOST_URL "docker ps"
117117
You can’t perform that action at this time.
0 commit comments