[ci] Add release link to uploaded package

This commit is contained in:
Fabian 2022-09-27 19:27:07 +02:00
parent 3efd3128de
commit d237c84f7d

View File

@ -45,6 +45,8 @@ package_linux:
upload: upload:
stage: deploy stage: deploy
image: curlimages/curl:latest image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
script: script:
- | - |
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
@ -60,3 +62,9 @@ release_job:
tag_name: $CI_COMMIT_TAG tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG' name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.' description: 'Release created using the release-cli.'
assets:
links:
- name: "${LINUX_AMD64_BINARY}"
url: "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
filepath: "/bin/${LINUX_AMD64_BINARY}"
link_type: package