Skip to content
Snippets Groups Projects

add smith and membership commands

Merged Hugo Trentesaux requested to merge hugo-dev into master
1 unresolved thread
+ 12
7
@@ -7,9 +7,16 @@ stages:
- upload
- release
variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages"
# build gcli binary
build:
stage: build
# only build gcli when adding a tag (does it really work?)
only:
- tags
# image used for this build
image: rust
# build script
@@ -26,9 +33,6 @@ build:
- Cargo.lock
paths:
- target/release
# only build gcli when adding a tag
only:
- tags
# upload gcli binary to gitlab
upload:
@@ -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}" --upload-file target/release/gcli "${PACKAGE_REGISTRY_URL}/gcli-${CI_COMMIT_TAG}"
# create a gitlab release pointing to this binary
release:
@@ -51,6 +55,7 @@ release:
name: 'Release $CI_COMMIT_TAG'
description: 'Automated release for $CI_COMMIT_TAG'
assets:
- name: 'gcli'
link_type: binary
url: "${PACKAGE_REGISTRY_URL}/gcli"
\ No newline at end of file
links:
- name: 'gcli'
link_type: other # binary
url: "${PACKAGE_REGISTRY_URL}/gcli"
\ No newline at end of file
Loading