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

ci: update pipeline logic

parent e58fe7f5
Pipeline #68559 failed with stages
in 11 minutes and 51 seconds
......@@ -24,10 +24,13 @@ filemetadata_push_runtime_image_azure:
- docker tag $LOCAL_SERVICE_NAME ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
- docker push ${AZURE_REGISTRY}.azurecr.io/$LATEST_IMAGE
rules:
- changes:
- if: $AZURE == 'true'
changes:
- devops/**/*
- app/filemetadata/**/*
if: $AZURE == 'true'
when: always
- when: never
filemetadata_azure_deploy:
tags: ["osdu-medium"]
......@@ -65,10 +68,12 @@ filemetadata_azure_deploy:
- 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
rules:
- changes:
- if: $AZURE == 'true'
changes:
- devops/**/*
- app/filemetadata/**/*
if: $AZURE == 'true'
when: always
- when: never
filemetadata_azure_test:
tags: ["osdu-medium"]
......@@ -92,7 +97,9 @@ filemetadata_azure_test:
- echo $SVC_TOKEN
- python3 -m pytest --traceconfig tests/
rules:
- changes:
- if: $AZURE == 'true'
changes:
- devops/**/*
- app/filemetadata/**/*
if: $AZURE == 'true'
\ No newline at end of file
when: always
- when: never
\ No newline at end of file
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