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
CI-CD Pipelines
Commits
e840297c
Commit
e840297c
authored
Jun 14, 2021
by
Oleksandr Kosse (EPAM)
Browse files
Merge branch 'pages' into 'master'
escape colon command See merge request
osdu/platform/ci-cd-pipelines!272
parents
c5dd8087
68d7f670
Pipeline
#46188
passed with stages
in 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
publishing/pages.yml
View file @
e840297c
...
...
@@ -20,7 +20,7 @@ pages:
## publish GCP helm charts
-
STATUS_CODE=$(curl --write-out '%{http_code}' --silent --output /dev/null ${CI_PAGES_URL}/index.yaml)
-
echo $STATUS_CODE
-
if [ "$STATUS_CODE" -ne 200 ] ; then touch index.yaml && echo "apiVersion
:
v1" >> index.yaml; else curl --silent --show-error ${CI_PAGES_URL}/index.yaml -o "index.yaml" ; fi
-
'
if
[
"$STATUS_CODE"
-ne
200
]
;
then
touch
index.yaml
&&
echo
"apiVersion:
v1"
>>
index.yaml
;
else
curl
--silent
--show-error
${CI_PAGES_URL}/index.yaml
-o
"index.yaml"
;
fi
'
-
helm package $OSDU_GCP_HELM_PACKAGE_CHARTS --destination ./public
-
helm repo index --url ${CI_PAGES_URL} --merge index.yaml .
-
sed -i 's|public/||g' index.yaml
...
...
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