Update .gitlab-ci.yml file

This commit is contained in:
Neshura 2023-06-19 20:20:54 +00:00
parent 63652ca090
commit 4e9a2075f5

View file

@ -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"