Commit bfd21d63 authored by Aman Verma's avatar Aman Verma
Browse files

addressing MR comments

parent 93dc5dfc
Pipeline #67992 failed with stages
in 40 seconds
......@@ -4,8 +4,8 @@ azure_bootstrap:
needs: ["azure_deploy"]
tags: ["osdu-medium"]
variables:
SHA_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
LATEST_IMAGE: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:latest
SHA_IMAGE: ${CI_PROJECT_NAME}-schema-load${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
LATEST_IMAGE: ${CI_PROJECT_NAME}-schema-load-${CI_COMMIT_REF_SLUG}:latest
extends:
- .azure_variables
before_script:
......@@ -28,6 +28,13 @@ azure_bootstrap:
docker build -t $CI_REGISTRY_IMAGE/$SHA_IMAGE --file $AZURE_DEPLOYMENTS_SUBDIR/Dockerfile .
docker push ${CI_REGISTRY_IMAGE}/$SHA_IMAGE
# Azure Container Registry
- az acr login -n $AZURE_REGISTRY
- docker tag $CI_REGISTRY_IMAGE/$SHA_IMAGE ${AZURE_REGISTRY}.azurecr.io/$SHA_IMAGE
- docker push ${AZURE_REGISTRY}.azurecr.io/$SHA_IMAGE
- docker tag $CI_REGISTRY_IMAGE/$SHA_IMAGE ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- docker push ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- docker run --env-file .env $CI_REGISTRY_IMAGE/$SHA_IMAGE
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