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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Rust
Ğcli-v2s
Commits
8fc8c0e8
There was an error fetching the commit references. Please try again later.
Commit
8fc8c0e8
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
WIP: test
parent
de184b29
No related branches found
No related tags found
No related merge requests found
Pipeline
#35790
failed
1 year ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-7
11 additions, 7 deletions
.gitlab-ci.yml
with
11 additions
and
7 deletions
.gitlab-ci.yml
+
11
−
7
View file @
8fc8c0e8
...
@@ -25,19 +25,23 @@ build:
...
@@ -25,19 +25,23 @@ build:
paths
:
paths
:
-
target/release
-
target/release
# only build gcli when adding a tag
# only build gcli when adding a tag
only
:
#
only:
-
tags
#
- tags
release
:
release
:
stage
:
release
stage
:
release
image
:
r
u
st
image
:
r
egistry.gitlab.com/gitlab-org/release-cli:late
st
script
:
script
:
-
echo "Creating a release..."
-
echo "Creating a release..."
-
CI_COMMIT_TAG="0.2.2"
-
apt-get update && apt-get install -y git
-
LAST_VERSION="$(git describe --tags --abbrev=0)"
-
RELEASE_DESCRIPTION="$(git log --pretty='format:- %s ([%h]($CI_PROJECT_URL/-/commit/%h)) ' HEAD...$LAST_VERSION --reverse)"
# Define release parameters
# Define release parameters
release
:
release
:
# Release name and description using the tag name
# Release name and description using the tag name
name
:
"
Release
$CI_COMMIT_TAG"
name
:
"
v
$CI_COMMIT_TAG"
description
:
"
Automatically
created
release
for
v$CI_COMMIT_TAG
"
description
:
"
Latest
changes:
\n
$RELEASE_DESCRIPTION
"
# Set the tag for the release
# Set the tag for the release
tag_name
:
"
$CI_COMMIT_TAG"
tag_name
:
"
$CI_COMMIT_TAG"
# Attach the artifact to the release
# Attach the artifact to the release
...
@@ -46,8 +50,8 @@ release:
...
@@ -46,8 +50,8 @@ release:
-
name
:
"
gcli
v$CI_COMMIT_TAG
for
Linux"
-
name
:
"
gcli
v$CI_COMMIT_TAG
for
Linux"
url
:
"
$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/raw/target/release/gcli?job=build"
url
:
"
$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/raw/target/release/gcli?job=build"
# Trigger release creation only for tagged commits
# Trigger release creation only for tagged commits
only
:
#
only:
-
tags
#
- tags
# Not necessary but clearly shows the dependency
# Not necessary but clearly shows the dependency
dependencies
:
dependencies
:
-
build
-
build
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