Skip to content
Snippets Groups Projects

add smith and membership commands

Merged Hugo Trentesaux requested to merge hugo-dev into master
1 file
+ 35
2
Compare changes
  • Side-by-side
  • Inline
+ 35
2
@@ -4,9 +4,15 @@ image: "rust:latest"
stages:
- build
- upload
- release
# build gcli binary
build:
stage: build
# only build gcli when adding a tag
only:
- tags
# image used for this build
image: rust
# build script
@@ -23,6 +29,33 @@ build:
- Cargo.lock
paths:
- target/release
# only build gcli when adding a tag
# upload gcli binary to gitlab
upload:
stage: upload
only:
- tags
\ No newline at end of file
- tags
image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/release/gcli "${PACKAGE_REGISTRY_URL}/gcli"
# create a gitlab release pointing to this binary
release:
stage: release
only:
- tags
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo "Running the release job."
release:
tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG'
description: 'Automated release for $CI_COMMIT_TAG'
assets:
links:
- name: 'gcli'
link_type: binary
url: "${PACKAGE_REGISTRY_URL}/gcli"
\ No newline at end of file
Loading