Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Rust
Ğcli-v2s
Commits
1474cecd
Commit
1474cecd
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
WIP improve ci
parent
0a821554
No related branches found
No related tags found
No related merge requests found
Pipeline
#32675
failed
1 year ago
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-1
27 additions, 1 deletion
.gitlab-ci.yml
with
27 additions
and
1 deletion
.gitlab-ci.yml
+
27
−
1
View file @
1474cecd
...
@@ -4,7 +4,10 @@ image: "rust:latest"
...
@@ -4,7 +4,10 @@ image: "rust:latest"
stages
:
stages
:
-
build
-
build
-
upload
-
release
# build gcli binary
build
:
build
:
stage
:
build
stage
:
build
# image used for this build
# image used for this build
...
@@ -25,4 +28,27 @@ build:
...
@@ -25,4 +28,27 @@ build:
-
target/release
-
target/release
# only build gcli when adding a tag
# only build gcli when adding a tag
only
:
only
:
-
tags
-
tags
\ No newline at end of file
# upload gcli binary to gitlab
upload
:
stage
:
upload
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
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
release
:
tag_name
:
$CI_COMMIT_TAG
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment