Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HowToGitLabRunner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISAS-FSD
HowToGitLabRunner
Commits
132df27b
Commit
132df27b
authored
5 years ago
by
Nicolas Borboën
Browse files
Options
Downloads
Patches
Plain Diff
Debugging
- tee - jq --raw
parent
c9eb00a7
Branches
Branches containing commit
Tags
v1567181636
Tags containing commit
No related merge requests found
Pipeline
#16549
waiting for manual action
Stage: test
Stage: build
Stage: deploy
Stage: control
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy.sh
+2
-2
2 additions, 2 deletions
deploy.sh
with
2 additions
and
2 deletions
deploy.sh
+
2
−
2
View file @
132df27b
...
@@ -38,7 +38,7 @@ git push -f --tags
...
@@ -38,7 +38,7 @@ git push -f --tags
echo
"END OF PUSH"
echo
"END OF PUSH"
echo
"BEGIN UPLOAD"
echo
"BEGIN UPLOAD"
UPLOADED_FILE_URL
=
"
$(
curl
--request
POST
--header
"Private-Token:
${
MY_TOKEN
}
"
--form
"file=@README.pdf"
"https://gitlab.epfl.ch/api/v4/projects/
1298
/uploads"
|
jq
.url
)
"
UPLOADED_FILE_URL
=
"
$(
curl
--request
POST
--header
"Private-Token:
${
MY_TOKEN
}
"
--form
"file=@README.pdf"
"https://gitlab.epfl.ch/api/v4/projects/
$PROJECT_ID
/uploads"
|
tee
/dev/stderr | jq
--raw
.url
)
"
echo
"END UPLOAD"
echo
"END UPLOAD"
echo
"BEGIN POST RELEASE"
echo
"BEGIN POST RELEASE"
...
@@ -48,7 +48,7 @@ for retry in $(seq 1 5); do
...
@@ -48,7 +48,7 @@ for retry in $(seq 1 5); do
--header
"Private-Token:
${
MY_TOKEN
}
"
\
--header
"Private-Token:
${
MY_TOKEN
}
"
\
--data
'{"name": "New README release", "tag_name": "'
${
RELEASE_V
}
'", "description": "Release with the PDF [README.pdf]('
${
UPLOADED_FILE_URL
}
')"}'
\
--data
'{"name": "New README release", "tag_name": "'
${
RELEASE_V
}
'", "description": "Release with the PDF [README.pdf]('
${
UPLOADED_FILE_URL
}
')"}'
\
"https://gitlab.epfl.ch/api/v4/projects/'
${
PROJECT_ID
}
'/releases"
\
"https://gitlab.epfl.ch/api/v4/projects/'
${
PROJECT_ID
}
'/releases"
\
| jq
-e
".created_at"
|
tee
/dev/stderr |
jq
-e
".created_at"
then
then
break
break
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment