|
| 1 | +env: |
| 2 | + - GO111MODULE=on |
| 3 | + - CGO_ENABLED=0 |
| 4 | +before: |
| 5 | + hooks: |
| 6 | + - go mod download |
| 7 | + |
| 8 | +builds: |
| 9 | + - id: lighthouse-webui-plugin |
| 10 | + # Path to main.go file or main package. |
| 11 | + # Default is `.`. |
| 12 | + main: ./cmd/server/main.go |
| 13 | + |
| 14 | + # Binary name. |
| 15 | + # Can be a path (e.g. `bin/app`) to wrap the binary in a directory. |
| 16 | + # Default is the name of the project directory. |
| 17 | + binary: lighthouse-webui-plugin |
| 18 | + |
| 19 | + # Custom ldflags templates. |
| 20 | + # Default is `-s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`. |
| 21 | + ldflags: |
| 22 | + - -X "github.com/jenkins-x-plugins/lighthouse-webui-plugin/internal/version.Version={{.Env.VERSION}}" -X "github.com/jenkins-x-plugins/lighthouse-webui-plugin/internal/version.Revision={{.Env.REV}}" -X "github.com/jenkins-x-plugins/lighthouse-webui-plugin/internal/version.Date={{.Env.BUILDDATE}}" |
| 23 | + |
| 24 | + # GOOS list to build for. |
| 25 | + # For more info refer to: https://golang.org/doc/install/source#environment |
| 26 | + # Defaults are darwin and linux. |
| 27 | + goos: |
| 28 | + - windows |
| 29 | + - darwin |
| 30 | + - linux |
| 31 | + |
| 32 | + # GOARCH to build for. |
| 33 | + # For more info refer to: https://golang.org/doc/install/source#environment |
| 34 | + # Defaults are 386 and amd64. |
| 35 | + goarch: |
| 36 | + - amd64 |
| 37 | + - arm |
| 38 | + - arm64 |
| 39 | + |
| 40 | +archives: |
| 41 | + - name_template: "lighthouse-webui-plugin-{{ .Os }}-{{ .Arch }}" |
| 42 | + format_overrides: |
| 43 | + - goos: windows |
| 44 | + format: zip |
| 45 | + |
| 46 | +checksum: |
| 47 | + # You can change the name of the checksums file. |
| 48 | + # Default is `lighthouse-webui-plugin_{{ .Version }}_checksums.txt`. |
| 49 | + name_template: "lighthouse-webui-plugin-checksums.txt" |
| 50 | + |
| 51 | + # Algorithm to be used. |
| 52 | + # Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384. |
| 53 | + # Default is sha256. |
| 54 | + algorithm: sha256 |
| 55 | + |
| 56 | +changelog: |
| 57 | + # set it to true if you wish to skip the changelog generation |
| 58 | + skip: true |
| 59 | + |
| 60 | +release: |
| 61 | + # If set to true, will not auto-publish the release. |
| 62 | + # Default is false. |
| 63 | + draft: false |
| 64 | + |
| 65 | + # If set to auto, will mark the release as not ready for production |
| 66 | + # in case there is an indicator for this in the tag e.g. v1.0.0-rc1 |
| 67 | + # If set to true, will mark the release as not ready for production. |
| 68 | + # Default is false. |
| 69 | + prerelease: false |
| 70 | + |
| 71 | + # You can change the name of the GitHub release. |
| 72 | + # Default is `{{.Tag}}` |
| 73 | + name_template: "{{.Env.VERSION}}" |
| 74 | + |
0 commit comments