-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
445 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: {} | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- run: git fetch --force --tags | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.20.7' | ||
cache: true | ||
- uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOPATH: /home/runner/go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
ldflags: | ||
- -w -s | ||
-X main.appName=go-redfish-api-idrac-client \ | ||
-X main.appVersion={{ .Version }} \ | ||
-X main.gitCommit={{ .Commit }} \ | ||
-X main.gitBranch={{ .Branch }} \ | ||
-X main.BuildUser=greenpau \ | ||
-X main.BuildDate={{ .Date }} \ | ||
-gcflags="all=-trimpath=$(GOPATH)/src" \ | ||
-asmflags="all=-trimpath $(GOPATH)/src" cmd/$(APP)/* | ||
main: './cmd/go-redfish-api-idrac-client' | ||
asmflags: | ||
- 'all=-trimpath={{.Env.GOPATH}}' | ||
gcflags: | ||
- 'all=-trimpath={{.Env.GOPATH}}' | ||
binary: go-redfish-api-idrac-client | ||
archives: | ||
- name_template: "go-redfish-api-idrac-client_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Version }}" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
module github.com/greenpau/go-redfish-api-idrac | ||
|
||
go 1.14 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 | ||
github.com/fsnotify/fsnotify v1.4.9 // indirect | ||
github.com/greenpau/versioned v1.0.23 | ||
github.com/iancoleman/strcase v0.0.0-20191112232945-16388991a334 | ||
github.com/magiconair/properties v1.8.4 // indirect | ||
github.com/mitchellh/mapstructure v1.3.3 // indirect | ||
github.com/pelletier/go-toml v1.8.1 // indirect | ||
github.com/sirupsen/logrus v1.6.0 | ||
github.com/spf13/afero v1.4.0 // indirect | ||
github.com/spf13/cast v1.3.1 // indirect | ||
github.com/greenpau/versioned v1.0.28 | ||
github.com/iancoleman/strcase v0.3.0 | ||
github.com/sirupsen/logrus v1.9.3 | ||
github.com/spf13/viper v1.16.0 | ||
) | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.6.0 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/magiconair/properties v1.8.7 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/pelletier/go-toml/v2 v2.0.8 // indirect | ||
github.com/spf13/afero v1.9.5 // indirect | ||
github.com/spf13/cast v1.5.1 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/spf13/viper v1.7.1 | ||
golang.org/x/sys v0.0.0-20200922070232-aee5d888a860 // indirect | ||
gopkg.in/ini.v1 v1.61.0 // indirect | ||
gopkg.in/yaml.v2 v2.3.0 // indirect | ||
github.com/subosito/gotenv v1.4.2 // indirect | ||
golang.org/x/sys v0.8.0 // indirect | ||
golang.org/x/text v0.9.0 // indirect | ||
gopkg.in/ini.v1 v1.67.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.