From 4e9a2075f57c7f0873432b7b515d50b4f663dc60 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 19 Jun 2023 20:20:54 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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"