Commit fb823bf5 authored by Srihari Prabaharan's avatar Srihari Prabaharan
Browse files

added protected variable, removed variable

parent f757da07
......@@ -78,7 +78,6 @@ aws-containerize:
stage: containerize
needs: ['compile-and-unit-test']
script:
- AWS_VERSION=$(cd $BUILD_DIR && mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- docker build -f $BUILD_DIR/Dockerfile -t $LOCAL_IMAGE_TAG .
# Push to the local container registry
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
......@@ -89,6 +88,10 @@ aws-containerize:
- docker tag $LOCAL_IMAGE_TAG $AWS_IMAGE_TAG_BASE:latest
- docker push $AWS_IMAGE_TAG_BASE:$CI_COMMIT_SHA
- docker push $AWS_IMAGE_TAG_BASE:latest
only:
variables:
- $AWS == 'true'
aws-update-ecs:
extends:
......@@ -99,6 +102,9 @@ aws-update-ecs:
script:
- ECS_SERVICE_NAME=$(aws ssm get-parameter --name ecs-$SERVICE_NAME --query Parameter.Value --output text --region $AWS_REGION)
- aws ecs update-service --cluster gitlab-core-cluster --service $ECS_SERVICE_NAME --region $AWS_REGION --force-new-deployment
only:
variables:
- $AWS == 'true'
aws-test:
extends:
......@@ -110,3 +116,6 @@ aws-test:
- ls -ltr
- cd $INTEGRATION_TEST_DIR
- mvn test -Dorg.slf4j.simpleLogger.defaultLogLevel=info
only:
variables:
- $AWS == 'true'
Supports Markdown
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