Commit aa50dde9 authored by Daniel Perez's avatar Daniel Perez
Browse files

ci: updating pipeline

parent 728df9c0
Pipeline #68511 failed with stages
in 12 minutes and 4 seconds
......@@ -23,12 +23,11 @@ filemetadata_push_runtime_image_azure:
- docker push ${AZURE_REGISTRY}.azurecr.io/$SHA_IMAGE
- docker tag $LOCAL_SERVICE_NAME ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- docker push ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
only:
variables:
- $AZURE == 'true'
changes:
rules:
- changes:
- devops/**/*
- app/filemetadata/**/*
if: $AZURE == 'true'
filemetadata_azure_deploy:
tags: ["osdu-medium"]
......@@ -65,12 +64,11 @@ filemetadata_azure_deploy:
- pod=$(kubectl get pod -n osdu|grep $LOCAL_SERVICE_NAME |tail -1 |awk '{print $1}')
- status=$(kubectl wait -n osdu --for=condition=Ready pod/$pod --timeout=600s)
- if [[ "$status" != *"met"* ]]; then echo "POD didn't start correctly" ; exit 1 ; fi
only:
variables:
- $AZURE == 'true'
changes:
rules:
- changes:
- devops/**/*
- app/filemetadata/**/*
if: $AZURE == 'true'
filemetadata_azure_test:
tags: ["osdu-medium"]
......@@ -93,9 +91,8 @@ filemetadata_azure_test:
- export SVC_TOKEN=$(python ${CI_PROJECT_DIR}/devops/scripts/azure_jwt_client.py)
- echo $SVC_TOKEN
- python3 -m pytest --traceconfig tests/
only:
variables:
- $AZURE == 'true'
changes:
rules:
- changes:
- devops/**/*
- app/filemetadata/**/*
\ No newline at end of file
- app/filemetadata/**/*
if: $AZURE == 'true'
\ No newline at end of file
......@@ -17,7 +17,7 @@ filemetadata_push_runtime_image:
- docker push $CI_REGISTRY_IMAGE/$SHA_IMAGE
- docker tag $LOCAL_SERVICE_NAME $CI_REGISTRY_IMAGE/$LATEST_IMAGE
- docker push $CI_REGISTRY_IMAGE/$LATEST_IMAGE
only:
changes:
rules:
- changes:
- devops/**/*
- app/filemetadata/**/*
\ No newline at end of file
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