Commit c0d1e943 authored by Matt Wise's avatar Matt Wise
Browse files

Update seismic-store-service.yml

parent 783eea11
Pipeline #31517 passed with stage
in 14 seconds
......@@ -57,26 +57,26 @@ push_runtime_image_gcp:
variables:
- $GCP == 'true'
push_runtime_image_aws:
image: $CI_REGISTRY/divido/aws-maven/aws-maven:v1.1
tags: ["osdu-medium"]
stage: containerize
variables:
LOCAL_IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
SERVICE_NAME: $AWS_SERVICE
AWS_IMAGE_TAG_BASE: ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_ECR_REGION}.amazonaws.com/os-${AWS_SERVICE}
script:
- docker build -t builder_sdms:latest --file docker/builder.Dockerfile .
- docker build -t $LOCAL_IMAGE_TAG --file docker/runtime.Dockerfile --build-arg docker_builder_image=builder_sdms .
# Push to the local container registry
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $LOCAL_IMAGE_TAG
# Push to Amazon's container registry
- $(aws ecr get-login --no-include-email --region $AWS_ECR_REGION)
- docker tag $LOCAL_IMAGE_TAG $AWS_IMAGE_TAG_BASE:$CI_COMMIT_SHA
- 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'
\ No newline at end of file
# push_runtime_image_aws:
# image: $CI_REGISTRY/divido/aws-maven/aws-maven:v1.1
# tags: ["osdu-medium"]
# stage: containerize
# variables:
# LOCAL_IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
# SERVICE_NAME: $AWS_SERVICE
# AWS_IMAGE_TAG_BASE: ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_ECR_REGION}.amazonaws.com/os-${AWS_SERVICE}
# script:
# - docker build -t builder_sdms:latest --file docker/builder.Dockerfile .
# - docker build -t $LOCAL_IMAGE_TAG --file docker/runtime.Dockerfile --build-arg docker_builder_image=builder_sdms .
# # Push to the local container registry
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - docker push $LOCAL_IMAGE_TAG
# # Push to Amazon's container registry
# - $(aws ecr get-login --no-include-email --region $AWS_ECR_REGION)
# - docker tag $LOCAL_IMAGE_TAG $AWS_IMAGE_TAG_BASE:$CI_COMMIT_SHA
# - 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'
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