Commit fbef5c09 by Sathish A

Update .gitlab-ci.yml to change staging URLs to development URLs for backend and…

Update .gitlab-ci.yml to change staging URLs to development URLs for backend and frontend deployments, and adjust ECS deployment commands accordingly.
parent e371afe5
Pipeline #61321 failed with stages
in 42 seconds
...@@ -37,8 +37,8 @@ docker_build_frontend_staging: ...@@ -37,8 +37,8 @@ docker_build_frontend_staging:
stage: build stage: build
variables: variables:
app_env: staging app_env: staging
vite_app_url: https://spin-wheel-backend-staging.kacdn.net vite_app_url: https://spin-wheel-backend-staging.dev.kacdn.net
backend_url: https://spin-wheel-backend-staging.kacdn.net backend_url: https://spin-wheel-backend-staging.dev.kacdn.net
script: script:
- env - env
- docker login -u $registry_user -p $registry_pass $registry - docker login -u $registry_user -p $registry_pass $registry
...@@ -63,14 +63,14 @@ deploy_backend_staging: ...@@ -63,14 +63,14 @@ deploy_backend_staging:
- docker_build_backend_staging - docker_build_backend_staging
variables: variables:
app_env: staging app_env: staging
app_url: https://spin-wheel-backend-staging.kacdn.net app_url: https://spin-wheel-backend-staging.dev.kacdn.net
app_image_tag: $CI_REGISTRY_IMAGE/backend:staging app_image_tag: $CI_REGISTRY_IMAGE/backend:staging
database_url: ${DATABASE_URL} database_url: ${DATABASE_URL}
allowed_origins: ${ALLOWED_ORIGINS:-https://spin-wheel-frontend-staging.kacdn.net} allowed_origins: ${ALLOWED_ORIGINS:-https://spin-wheel-frontend-staging.dev.kacdn.net}
ecs_task_definition: ${ecs_task_definition_backend} ecs_task_definition: ${ecs_task_definition_backend}
service_name: spin-the-wheel-backend-staging service_name: spin-the-wheel-backend-staging
script: script:
- deploy-ecs staging - deploy-ecs sg-dev
only: only:
- master - master
...@@ -84,12 +84,12 @@ deploy_frontend_staging: ...@@ -84,12 +84,12 @@ deploy_frontend_staging:
- docker_build_frontend_staging - docker_build_frontend_staging
variables: variables:
app_env: staging app_env: staging
app_url: https://spin-wheel-frontend-staging.kacdn.net app_url: https://spin-wheel-frontend-staging.dev.kacdn.net
app_image_tag: $CI_REGISTRY_IMAGE/frontend:staging app_image_tag: $CI_REGISTRY_IMAGE/frontend:staging
backend_url: https://spin-wheel-backend-staging.kacdn.net backend_url: https://spin-wheel-backend-staging.dev.kacdn.net
ecs_task_definition: ${ecs_task_definition_frontend} ecs_task_definition: ${ecs_task_definition_frontend}
service_name: spin-the-wheel-frontend-staging service_name: spin-the-wheel-frontend-staging
script: script:
- deploy-ecs staging - deploy-ecs sg-dev
only: only:
- master - master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment