Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nova-password
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
hdacloud
nova-password
Commits
dc92db5e
Commit
dc92db5e
authored
9 months ago
by
kayrus
Browse files
Options
Downloads
Patches
Plain Diff
Introduce goreleaser
parent
d4143475
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/release.yml
+34
-0
34 additions, 0 deletions
.github/workflows/release.yml
.goreleaser.yml
+43
-0
43 additions, 0 deletions
.goreleaser.yml
with
77 additions
and
0 deletions
.github/workflows/release.yml
0 → 100644
+
34
−
0
View file @
dc92db5e
# This GitHub action will publish assets for release when a tag is created
# that matches the pattern "v*" (ie. v0.1.0).
#
# Based on the configuration provided at:
# https://github.com/hashicorp/terraform-provider-scaffolding
name
:
Release
on
:
push
:
tags
:
-
'
v*'
jobs
:
goreleaser
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
-
name
:
Unshallow
run
:
git fetch --prune --unshallow
-
name
:
Set up Go
uses
:
actions/setup-go@v5
with
:
go-version
:
'
1.22'
-
name
:
Run GoReleaser
uses
:
goreleaser/goreleaser-action@v6
with
:
version
:
v2
args
:
release --clean
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
This diff is collapsed.
Click to expand it.
.goreleaser.yml
0 → 100644
+
43
−
0
View file @
dc92db5e
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version
:
2
before
:
hooks
:
# this is just an example and not a requirement for provider building/publishing
-
go mod tidy
builds
:
-
env
:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
-
CGO_ENABLED=0
mod_timestamp
:
'
{{
.CommitTimestamp
}}'
flags
:
-
-trimpath
ldflags
:
-
'
-s
-w
-X
main.Version={{.Version}}'
goos
:
-
freebsd
-
windows
-
linux
-
darwin
goarch
:
-
amd64
-
'
386'
-
arm
-
arm64
ignore
:
-
goos
:
darwin
goarch
:
'
386'
binary
:
'
{{
.ProjectName
}}'
archives
:
-
format
:
zip
name_template
:
'
{{
.ProjectName
}}-{{
.Version
}}-{{
.Os
}}-{{
.Arch
}}'
checksum
:
name_template
:
'
{{
.ProjectName
}}-{{
.Version
}}-SHA256SUMS'
algorithm
:
sha256
release
:
# Visit your project's GitHub Releases page to publish this release.
draft
:
true
changelog
:
disable
:
true
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