Skip to content
Snippets Groups Projects
Commit ae941761 authored by Shane Hutchins's avatar Shane Hutchins
Browse files

update azure test pipeline to use apline image

parent 38691829
No related branches found
No related tags found
1 merge request!552Updating docker images to resolve remaining vulnerabilities in azure, gc and ibm images
Pipeline #301089 failed
......@@ -96,7 +96,7 @@ azure_test_py:
name: $CI_REGISTRY_IMAGE/${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
entrypoint: [""]
before_script:
- apt-get update && apt-get install -y curl jq
- apk update && apk install -y curl jq
- pip install -q -r ./requirements_dev.txt
- export BEARER_TOKEN=$(curl -ks -XPOST "https://login.microsoftonline.com/${AZURE_TENANT_ID}/oauth2/token" -d "grant_type=client_credentials&client_id=${AZURE_PRINCIPAL_ID}&client_secret=${AZURE_PRINCIPAL_SECRET}&resource=${AZURE_APP_ID}" | jq --raw-output '.access_token')
- if [ -z $BEARER_TOKEN ]; then echo "[ERROR] Not able to get token (BEARER_TOKEN)"; exit 1; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment