Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-boxes
Commits
8b7b6054
Verified
Commit
8b7b6054
authored
Sep 26, 2020
by
Sven-Hendrik Haase
Browse files
Add asset links to GitLab tag
This will allow us to link a release to a file to specific Vagrant Cloud version.
parent
85f94329
Pipeline
#1863
failed with stages
in 21 minutes and 42 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8b7b6054
...
...
@@ -68,11 +68,17 @@ tag_release:
before_script
:
-
pacman -Syu --needed --noconfirm httpie
script
:
-
>
export ASSET_LINKS="[
{ \"name\": \"Vagrant Cloud Release\", \"url\": \"https://app.vagrantup.com/archlinux/boxes/archlinux/versions/$BUILD_VERSION\" },
{ \"name\": \"qcow2 Image\", \"url\": \"https://gitlab.archlinux.org/archlinux/arch-boxes/-/jobs/artifacts/master/raw/output/Arch-Linux-x86_64-cloudimg-$BUILD_VERSION.qcow2?job=build:secure\" }
]"
-
http --ignore-stdin "$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases"
"JOB-TOKEN:$CI_JOB_TOKEN"
"name=v$BUILD_VERSION"
"tag_name=v$BUILD_VERSION"
"ref=$CI_COMMIT_SHA"
"assets.links=$ASSET_LINKS"
publish
:
stage
:
publish
...
...
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