Skip to content
Snippets Groups Projects
Commit 51afe890 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

WIP CI :'(

parent 58f81a50
No related branches found
No related tags found
No related merge requests found
Pipeline #32716 passed
...@@ -8,8 +8,8 @@ stages: ...@@ -8,8 +8,8 @@ stages:
- release - release
variables: 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 gcli binary
build: build:
...@@ -42,7 +42,7 @@ upload: ...@@ -42,7 +42,7 @@ upload:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
script: 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 # create a gitlab release pointing to this binary
release: release:
...@@ -58,4 +58,4 @@ release: ...@@ -58,4 +58,4 @@ release:
links: links:
- name: 'gcli' - name: 'gcli'
link_type: other # binary link_type: other # binary
url: "${PACKAGE_REGISTRY_URL}/gcli" url: "${PACKAGE_REGISTRY_URL}"
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment