1+ version : 2
2+
3+ env :
4+ - GITHUB_REPOSITORY={{ if index .Env "GITHUB_REPOSITORY" }}{{ .Env.GITHUB_REPOSITORY }}{{ else }}temporalio/temporal-worker-controller{{ end }}
5+
6+ before :
7+ hooks :
8+ - go mod download
9+
10+ announce :
11+ skip : true
12+
13+ changelog :
14+ disable : true
15+
16+ release :
17+ prerelease : auto
18+ draft : false
19+
20+ builds :
21+ - id : nix
22+ dir : cmd
23+ binary : temporal-worker-controller
24+ ldflags :
25+ - -s -w -X github.com/temporalio/temporal-worker-controller/internal/controller.Version={{.Version}}
26+ goarch :
27+ - amd64
28+ - arm64
29+ goos :
30+ - linux
31+ - darwin
32+ env :
33+ - CGO_ENABLED=0
34+
35+ archives :
36+ - id : default
37+ name_template : " temporal-worker-controller_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
38+ files :
39+ - LICENSE
40+
41+ checksum :
42+ name_template : " checksums.txt"
43+ algorithm : sha256
44+
45+ dockers :
46+ - image_templates :
47+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-amd64"
48+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Major }}.{{ .Minor }}-amd64"
49+ dockerfile : Dockerfile.goreleaser
50+ use : buildx
51+ build_flag_templates :
52+ - --platform=linux/amd64
53+ - --label=org.opencontainers.image.title={{ .ProjectName }}
54+ - --label=org.opencontainers.image.description=Temporal Worker Controller for Kubernetes
55+ - --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_REPOSITORY }}
56+ - --label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_REPOSITORY }}
57+ - --label=org.opencontainers.image.version={{ .Version }}
58+ - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
59+ - --label=org.opencontainers.image.revision={{ .FullCommit }}
60+ - --label=org.opencontainers.image.licenses=MIT
61+ extra_files :
62+ - LICENSE
63+
64+ - image_templates :
65+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-arm64"
66+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Major }}.{{ .Minor }}-arm64"
67+ dockerfile : Dockerfile.goreleaser
68+ use : buildx
69+ build_flag_templates :
70+ - --platform=linux/arm64
71+ - --label=org.opencontainers.image.title={{ .ProjectName }}
72+ - --label=org.opencontainers.image.description=Temporal Worker Controller for Kubernetes
73+ - --label=org.opencontainers.image.url=https://github.com/{{ .Env.GITHUB_REPOSITORY }}
74+ - --label=org.opencontainers.image.source=https://github.com/{{ .Env.GITHUB_REPOSITORY }}
75+ - --label=org.opencontainers.image.version={{ .Version }}
76+ - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
77+ - --label=org.opencontainers.image.revision={{ .FullCommit }}
78+ - --label=org.opencontainers.image.licenses=MIT
79+ extra_files :
80+ - LICENSE
81+
82+ docker_manifests :
83+ - name_template : " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}"
84+ image_templates :
85+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-amd64"
86+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-arm64"
87+
88+ - name_template : " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Major }}.{{ .Minor }}"
89+ image_templates :
90+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Major }}.{{ .Minor }}-amd64"
91+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:v{{ .Major }}.{{ .Minor }}-arm64"
92+
93+ - name_template : " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:latest"
94+ image_templates :
95+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-amd64"
96+ - " ghcr.io/{{ .Env.GITHUB_REPOSITORY }}:{{ .Tag }}-arm64"
0 commit comments