Commit 1ff8b5b6 by Arunachalam P

Update .gitlab-ci.yml

parent 27e9e934
...@@ -5,30 +5,18 @@ stages: ...@@ -5,30 +5,18 @@ stages:
variables: variables:
app_name: maf-gateway-frontend app_name: maf-gateway-frontend
app_image_tag: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME app_image_tag: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
image_tag: $CI_BUILD_REF_NAME
image: $CI_REGISTRY_IMAGE
registry_pass: $CI_BUILD_TOKEN
registry_user: gitlab-ci-token registry_user: gitlab-ci-token
registry_pass: $CI_BUILD_TOKEN
registry: $CI_REGISTRY registry: $CI_REGISTRY
slack_channel: maf-gateway
ecs_definition: config/ecs-task-definition.json
ecs_entrypoint: app:3000
docker_build_staging: docker_build_staging:
tags: tags:
- docker - docker
- eu - eu
stage: build stage: build
variables:
app_env: staging
app_assets_url: https://maf-mp.s3.ap-southeast-1.amazonaws.com/maf-mp-strapi/staging
script: script:
- env
- docker login -u $registry_user -p $registry_pass $registry - docker login -u $registry_user -p $registry_pass $registry
- docker build -t $app_image_tag \ - docker build -t $app_image_tag .
--build-arg APP_ENV=$app_env \
.
- docker push $app_image_tag - docker push $app_image_tag
only: only:
- master - master
...@@ -39,9 +27,6 @@ deploy_staging: ...@@ -39,9 +27,6 @@ deploy_staging:
- deploy - deploy
- eu - eu
stage: deploy stage: deploy
variables:
app_env: staging
script: script:
- deploy-ecs eu-staging - deploy-ecs eu-staging
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