Commit 5ef220aa authored by harshit aggarwal's avatar harshit aggarwal
Browse files

init

parent 8ced4d9e
Pipeline #75720 failed with stage
in 27 seconds
......@@ -9,6 +9,7 @@ class CreateDag:
def __init__(self, file_path):
self.build_version = os.environ.get("BUILD_VERSION")
self.docker_tag = os.environ.get("DOCKER_TAG")
self.dns_host_name = "{{ var.value.azure_dns_host }}"
self.namespace = os.environ.get('NAMESPACE')
self.dag_folder_path = os.environ.get('CSV_PARSER_DAG_FOLDER_PATH', '../airflowdags/osdu_csv_parser')
......@@ -57,7 +58,7 @@ class CreateDag:
params = {
"DAG_NAME": self.dag_name,
"DOCKER_IMAGE": "{{ var.value.dag_image_acr }}/csv-parser:" + self.build_version,
"DOCKER_IMAGE": "{{ var.value.dag_image_acr }}/csv-parser:" + self.docker_tag,
"DNS_HOST": self.dns_host_name,
"NAMESPACE": self.namespace,
"ENV_VARS": json.dumps(self.env_vars, indent=4),
......
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