Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Ingestion
Energistics - OSDU Integration
Commits
f4be446c
Commit
f4be446c
authored
Dec 26, 2021
by
Vadzim Kulyba (EPAM)
Browse files
feat(azure): add after script for azure_copy_dag stage v.3
parent
942df58f
Pipeline
#84592
failed with stages
in 9 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f4be446c
...
...
@@ -146,7 +146,18 @@ azure_build_dag:
azure_copy_dag
:
needs
:
[
"
azure_build_dag"
]
after_script
:
-
echo "Preparing variables for generate SAS token"
-
EXPIRE=$(date -u -d "59 minutes" '+%Y-%m-%dT%H:%M:%SZ')
-
START=$(date -u -d "-1 minute" '+%Y-%m-%dT%H:%M:%SZ')
-
accountKey=$(kubectl get secret airflow -n osdu -o jsonpath='{.data.azurestorageaccountkey}' | base64 -d)
-
accountName=$(kubectl get secret airflow -n osdu -o jsonpath='{.data.azurestorageaccountname}' | base64 -d)
-
AZURE_STORAGE_SAS_TOKEN=$(az storage account generate-sas --account-name $accountName --account-key $accountKey --start $START --expiry $EXPIRE --https-only --resource-types sco --services f --permissions cwdlur -o tsv)
-
echo "Preparing k8s operator config for WITSML parser"
-
configPath="https://${accountName}.file.core.windows.net/airflowdags/dags/witsml_parser_airflow_configs.yaml?${AZURE_STORAGE_SAS_TOKEN}"
-
echo $configPath
-
sed -i "s|IMAGE|$OSDU_AZURE_BASE_IMAGE_TAG|" devops/$OSDU_AZURE_POSTFIX/airflow_configs.yaml
...
...
harshit aggarwal
@harshit283
mentioned in commit
2d95086c
·
Jan 27, 2022
mentioned in commit
2d95086c
mentioned in commit 2d95086c1b7ca542ebadb9ccdcc040236e6ca68a
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment