Skip to content
Snippets Groups Projects

add smith and membership commands

Merged Hugo Trentesaux requested to merge hugo-dev into master
+ 8
4
@@ -7,10 +7,14 @@ stages:
- upload
- release
variables:
# url for package registry
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/gcli-${CI_COMMIT_TAG}"
# build gcli binary
build:
stage: build
# only build gcli when adding a tag
# only build gcli when adding a tag (does it really work?)
only:
- tags
# image used for this build
@@ -38,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"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --header "Content-Type: application/octet-stream" --upload-file target/release/gcli "${PACKAGE_REGISTRY_URL}"
# create a gitlab release pointing to this binary
release:
@@ -53,5 +57,5 @@ release:
assets:
links:
- name: 'gcli'
link_type: binary
url: "${PACKAGE_REGISTRY_URL}/gcli"
\ No newline at end of file
link_type: other # binary
url: "${PACKAGE_REGISTRY_URL}"
\ No newline at end of file
Loading