Commit 590ead3c by Sathish A

Enhance .gitlab-ci.yml by adding registry credentials for backend and frontend…

Enhance .gitlab-ci.yml by adding registry credentials for backend and frontend staging deployments to improve security and streamline access to the container registry.
parent 4eb95f21
Pipeline #61362 failed with stages
in 1 minute 5 seconds
...@@ -66,12 +66,15 @@ deploy_backend_staging: ...@@ -66,12 +66,15 @@ deploy_backend_staging:
app_env: staging app_env: staging
app_url: https://spin-wheel-backend-staging.dev.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.dev.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}
ecs_definition: ${ecs_task_definition_backend} ecs_definition: ${ecs_task_definition_backend}
ecs_entrypoint: app:5000 ecs_entrypoint: app:5000
service_name: spin-the-wheel-backend-staging service_name: spin-the-wheel-backend-staging
registry_user: gitlab-ci-token
registry_pass: $CI_BUILD_TOKEN
registry: $CI_REGISTRY
script: script:
- deploy-ecs sg-dev - deploy-ecs sg-dev
only: only:
...@@ -95,6 +98,9 @@ deploy_frontend_staging: ...@@ -95,6 +98,9 @@ deploy_frontend_staging:
ecs_definition: ${ecs_task_definition_frontend} ecs_definition: ${ecs_task_definition_frontend}
ecs_entrypoint: app:80 ecs_entrypoint: app:80
service_name: spin-the-wheel-frontend-staging service_name: spin-the-wheel-frontend-staging
registry_user: gitlab-ci-token
registry_pass: $CI_BUILD_TOKEN
registry: $CI_REGISTRY
script: script:
- deploy-ecs sg-dev - deploy-ecs sg-dev
only: only:
......
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