2023-02-26 05:16:38 +01:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- darwin
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- freebsd
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
goarm:
|
|
|
|
- "5"
|
|
|
|
- "6"
|
|
|
|
- "7"
|
|
|
|
ignore:
|
|
|
|
- goos: darwin
|
|
|
|
goarch: arm
|
|
|
|
- goos: darwin
|
|
|
|
goarch: ppc64le
|
|
|
|
- goos: darwin
|
|
|
|
goarch: s390x
|
|
|
|
- goos: windows
|
|
|
|
goarch: ppc64le
|
|
|
|
- goos: windows
|
|
|
|
goarch: s390x
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
goarm: "5"
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
goarm: "6"
|
|
|
|
- goos: windows
|
|
|
|
goarch: arm
|
|
|
|
goarm: "7"
|
2023-03-01 05:50:50 +01:00
|
|
|
- goos: windows
|
|
|
|
goarch: arm64
|
2023-02-26 05:16:38 +01:00
|
|
|
- goos: freebsd
|
|
|
|
goarch: ppc64le
|
|
|
|
- goos: freebsd
|
|
|
|
goarch: s390x
|
|
|
|
- goos: freebsd
|
|
|
|
goarch: arm
|
|
|
|
goarm: "5"
|
|
|
|
- goos: freebsd
|
|
|
|
goarch: arm
|
|
|
|
goarm: "6"
|
|
|
|
- goos: freebsd
|
|
|
|
goarch: arm
|
|
|
|
goarm: "7"
|
2023-03-01 06:00:18 +01:00
|
|
|
- goos: freebsd
|
|
|
|
goarch: arm64
|
2023-02-26 05:16:38 +01:00
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
2023-04-04 15:32:04 +02:00
|
|
|
- -s -w -X gitea.com/gitea/act_runner/internal/pkg/ver.version={{ .Summary }}
|
2023-02-26 05:16:38 +01:00
|
|
|
binary: >-
|
|
|
|
{{ .ProjectName }}-
|
2023-03-18 06:58:21 +01:00
|
|
|
{{- .Version }}-
|
2023-02-26 05:16:38 +01:00
|
|
|
{{- .Os }}-
|
|
|
|
{{- if eq .Arch "amd64" }}amd64
|
|
|
|
{{- else if eq .Arch "amd64_v1" }}amd64
|
|
|
|
{{- else if eq .Arch "386" }}386
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
|
|
{{- if .Arm }}-{{ .Arm }}{{ end }}
|
|
|
|
no_unique_dist_dir: true
|
2023-03-18 06:58:21 +01:00
|
|
|
hooks:
|
|
|
|
post:
|
2023-05-01 15:59:43 +02:00
|
|
|
- cmd: xz -k -9 {{ .Path }}
|
2023-04-28 17:46:46 +02:00
|
|
|
dir: ./dist/
|
2023-03-18 06:58:21 +01:00
|
|
|
- cmd: sh .goreleaser.checksum.sh {{ .Path }}
|
|
|
|
- cmd: sh .goreleaser.checksum.sh {{ .Path }}.xz
|
2023-02-26 05:16:38 +01:00
|
|
|
|
|
|
|
blobs:
|
|
|
|
-
|
|
|
|
provider: s3
|
|
|
|
bucket: "{{ .Env.S3_BUCKET }}"
|
|
|
|
region: "{{ .Env.S3_REGION }}"
|
|
|
|
folder: "act_runner/{{.Version}}"
|
2023-03-18 06:58:21 +01:00
|
|
|
extra_files:
|
|
|
|
- glob: ./**.xz
|
|
|
|
- glob: ./**.sha256
|
2023-02-26 05:16:38 +01:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: binary
|
|
|
|
name_template: "{{ .Binary }}"
|
|
|
|
allow_different_binary_count: true
|
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
2023-03-18 06:58:21 +01:00
|
|
|
extra_files:
|
|
|
|
- glob: ./**.xz
|
2023-02-26 05:16:38 +01:00
|
|
|
|
|
|
|
snapshot:
|
2023-03-18 06:58:21 +01:00
|
|
|
name_template: "{{ .Branch }}-devel"
|
2023-02-26 05:16:38 +01:00
|
|
|
|
|
|
|
nightly:
|
2023-04-27 06:23:15 +02:00
|
|
|
name_template: "nightly"
|
2023-03-18 06:58:21 +01:00
|
|
|
|
2023-04-13 10:49:50 +02:00
|
|
|
gitea_urls:
|
|
|
|
api: https://gitea.com/api/v1
|
|
|
|
download: https://gitea.com
|
|
|
|
|
2023-05-04 03:41:22 +02:00
|
|
|
release:
|
|
|
|
extra_files:
|
|
|
|
- glob: ./**.xz
|
|
|
|
- glob: ./**.xz.sha256
|
|
|
|
|
2023-03-18 06:58:21 +01:00
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
2023-04-28 17:46:46 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|