From 51afe8908a8894915979126907a5c96363b436ad Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Mon, 10 Jul 2023 16:45:17 +0200
Subject: [PATCH] WIP CI :'(

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22bd706..ebc6cc7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,8 +8,8 @@ stages:
   - release
 
 variables:
-  PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages"
-
+  # url for package registry
+  PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/gcli-${CI_COMMIT_TAG}"
 
 # build gcli binary
 build:
@@ -42,7 +42,7 @@ upload:
     - if: $CI_COMMIT_TAG
   script:
     - |
-      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/release/gcli "${PACKAGE_REGISTRY_URL}/gcli-${CI_COMMIT_TAG}"
+      curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/release/gcli "${PACKAGE_REGISTRY_URL}"
 
 # create a gitlab release pointing to this binary
 release:
@@ -58,4 +58,4 @@ release:
       links:
         - name: 'gcli'
           link_type: other # binary
-          url: "${PACKAGE_REGISTRY_URL}/gcli"
\ No newline at end of file
+          url: "${PACKAGE_REGISTRY_URL}"
\ No newline at end of file
-- 
GitLab