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
Komal Makkar
CI-CD Pipelines
Commits
d133dcff
Commit
d133dcff
authored
Jan 08, 2021
by
Sumra Zafar
Browse files
File upload changed to file share - following catalog service
parent
407d2760
Changes
1
Hide whitespace changes
Inline
Side-by-side
cloud-providers/azure.yml
View file @
d133dcff
...
...
@@ -181,13 +181,17 @@ azure_deploy:
-
az login --service-principal -u $AZURE_PRINCIPAL_ID -p $AZURE_PRINCIPAL_SECRET --tenant $AZURE_TENANT_ID
-
az aks get-credentials -g $AZURE_UNIQUE-rg -n $AZURE_UNIQUE-aks
script
:
#Crs Conversion Service
c
opy
d
ataset
#
Update
Crs Conversion Service
C
opy
D
ataset
-
|
if [ -d "apachesis_setup/SIS_DATA" ]; then
pod=$(kubectl get pod -n osdu|grep $CI_PROJECT_NAME |tail -1 |awk '{print $1}')
echo "File copy started for crs-conversion-service for pod $pod"
res=$(kubectl cp apachesis_setup osdu/$pod:/apachesis_setup -c crs-conversion-service)
echo "$res"
search_dir="apachesis_setup/SIS_DATA"
if [ -d "$search_dir" ]; then
echo "Starting to upload files for CRS Conversion Service"
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)
find "$search_dir/" -type f -print0 | while read -d $'\0' file; do
az storage file upload --account-name $accountName --account-key $accountKey --share-name $SHARE_NAME --source $file
done
echo "File upload successfully completed for CRS Conversion Service"
fi
-
cd devops/azure
-
echo "--set image.branch=$BRANCH --set image.tag=$TAG"
...
...
Write
Preview
Markdown
is supported
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