Commit 1f6f2405 authored by harshit aggarwal's avatar harshit aggarwal
Browse files

init

parent 9b8d1e00
Pipeline #53811 passed with stage
in 19 seconds
......@@ -354,32 +354,30 @@ azure_register_dag:
azure_dag_end_to_end_test:
tags: ["osdu-medium"]
image: danielscholl/azure-build-image
needs: ["azure_register_dag"]
stage: testDag
variables:
IMAGE_NAME: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}
script:
- |
# Generating environment file to be passed while running the docker container
cat > .env << EOF
AZURE_TEST_CSV_FILE_PATH=${CI_REGISTRY_USER}
AZURE_POSTMAN_ENVIRONMENT_FILE_URL=${CI_REGISTRY_PASSWORD}
AZURE_TENANT_ID=${CI_REGISTRY}
CLIENT_ID=${AZURE_REGISTRY}
CLIENT_SECRET=${AZURE_PRINCIPAL_ID}
AZURE_DNS_NAME=${AZURE_PRINCIPAL_SECRET}
AZURE_REFRESH_TOKEN=${AZURE_TENANT_ID}
AZURE_POSTMAN_COLLECTION_FILE_URL=${CI_PROJECT_NAME}
AZURE_TEST_SCHEMA_FILE_PATH=${CI_COMMIT_REF_SLUG}
AZURE_TEST_CSV_FILE_PATH=${AZURE_TEST_CSV_FILE_PATH}
AZURE_POSTMAN_ENVIRONMENT_FILE_URL=${AZURE_POSTMAN_ENVIRONMENT_FILE_URL}
AZURE_TENANT_ID=${AZURE_TENANT_ID}
CLIENT_ID=${CLIENT_ID}
CLIENT_SECRET=${CLIENT_SECRET}
AZURE_DNS_NAME=${AZURE_DNS_NAME}
AZURE_REFRESH_TOKEN=${AZURE_REFRESH_TOKEN}
AZURE_POSTMAN_COLLECTION_FILE_URL=${AZURE_POSTMAN_COLLECTION_FILE_URL}
AZURE_TEST_SCHEMA_FILE_PATH=${AZURE_TEST_SCHEMA_FILE_PATH}
EOF
docker build -t $IMAGE_NAME/run-tests --file $AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR/dockerFolder/end_to_end_tests_dockerfile .
docker build -t $IMAGE_NAME-run-tests --file $AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR/dockerFolder/end_to_end_tests_dockerfile .
docker run --env-file .env $IMAGE_NAME/run-tests
docker run --env-file .env $IMAGE_NAME-run-tests
only:
variables:
- $AZURE == 'true'
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