diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b68510a..f5c5970 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,8 @@ image: 3.10.8-slim-buster +variables: + PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux/$CI_COMMIT_TAG/" + .deploy: rules: # Regex magic copied from Neshura/page-test, only deploys on x.y.z or higher (x.y) Tags @@ -42,7 +45,8 @@ upload: image: curlimages/curl:latest stage: upload script: - - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file artifacts/ascendance-of-a-bookworm-bot "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/linux/$CI_COMMIT_TAG/ascendance-of-a-bookworm-bot"' + - | + curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file artifacts/ascendance-of-a-bookworm-bot "${PACKAGE_REGISTRY_URL}/ascendance-of-a-bookworm-bot" rules: - !reference [.deploy, rules] @@ -60,5 +64,5 @@ Tag Release: description: '$CI_COMMIT_TAG' assets: links: - - name: "ascendance-of-a-bookworm-bot.zip" - url: "https://gitlab.neshweb.net/Neshura/ascendance-of-a-bookworm-bot/packages/generic/linux/$CI_COMMIT_TAG/ascendance-of-a-bookworm-bot" + - name: "ascendance-of-a-bookworm-bot" + url: "${PACKAGE_REGISTRY_URL}/ascendance-of-a-bookworm-bot"