Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
4c9fcbe5
Commit
4c9fcbe5
authored
Nov 29, 2019
by
Matthias Betz
Browse files
Update .gitlab-ci.yml
parent
9ad00549
Pipeline
#285
failed
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4c9fcbe5
...
@@ -15,11 +15,11 @@ release:
...
@@ -15,11 +15,11 @@ release:
-
echo ${CI_COMMIT_TAG}
-
echo ${CI_COMMIT_TAG}
-
echo ${CI_API_V4_URL}
-
echo ${CI_API_V4_URL}
-
echo ${CI_PROJECT_URL}
-
echo ${CI_PROJECT_URL}
-
UPLOAD_RESULT = curl --request POST --header
"
PRIVATE-TOKEN
:
${TOKEN}
"
--form "file=@${FILE}" ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/uploads
-
UPLOAD_RESULT = curl --request POST --header
'
PRIVATE-TOKEN
:
${TOKEN}
'
--form "file=@${FILE}" ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/uploads
-
echo ${UPLOAD_RESULT}
-
echo ${UPLOAD_RESULT}
-
FILE_URL = echo $UPLOAD_RESULT | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["url"]'
-
FILE_URL = echo $UPLOAD_RESULT | python -c 'import json,sys;obj=json.load(sys.stdin);print obj["url"]'
-
echo ${FILE_URL}
-
echo ${FILE_URL}
-
curl
--request POST
--header 'Content-Type
:
application/json' --header "PRIVATE-TOKEN
:
${TOKEN}" --data '{"name"
:
"
Release
${CI_COMMIT_TAG}"
,
"
tag_name"
:
"
${CI_COMMIT_TAG}"
,
"
description"
:
"
RegionChooser
Release"
,
"
assets"
:
{
"
links"
:
[{
"
name"
:
"
${FILE}"
,
"
url"
:
"
${CI_PROJECT_URL}${FILE_URL}"
}]
}
}
'
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases
-
curl --header 'Content-Type
:
application/json' --header "PRIVATE-TOKEN
:
${TOKEN}" --data '{"name"
:
"
Release
${CI_COMMIT_TAG}"
,
"
tag_name"
:
"
${CI_COMMIT_TAG}"
,
"
description"
:
"
RegionChooser
Release"
,
"
assets"
:
{
"
links"
:
[{
"
name"
:
"
${FILE}"
,
"
url"
:
"
${CI_PROJECT_URL}${FILE_URL}"
}]
}
}
'
--request
POST
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases
only:
only:
refs:
refs:
-
tags
-
tags
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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