(ci) change package url

This commit is contained in:
Hugo Renard 2022-06-09 14:15:57 +02:00
parent 4eec89c1ed
commit 626826ee2e
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -2,6 +2,7 @@ variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scim" PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scim"
EXTRA_DESCRIPTION: "" EXTRA_DESCRIPTION: ""
SCIM_FILE: scim_${CI_COMMIT_TAG}.zip SCIM_FILE: scim_${CI_COMMIT_TAG}.zip
SCIM_PACKAGE: ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/scim.zip
stages: stages:
- package - package
@ -27,7 +28,7 @@ upload:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
script: script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${SCIM_FILE}" "${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/scim.zip"' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${SCIM_FILE}" "${SCIM_PACKAGE}"'
needs: needs:
- job: package - job: package
artifacts: true artifacts: true
@ -47,6 +48,6 @@ release_job:
assets: assets:
links: links:
- name: "scim" - name: "scim"
url: "${PACKAGE_REGISTRY_URL}/${SCIM_FILE}" url: "${SCIM_PACKAGE}"
filepath: "/scim" filepath: "/scim"
link_type: "package" link_type: "package"