Skip to content

Commit f6e48d2

Browse files
committed
🤖 ci: split goreleaser docker tags by channel
Avoid rendering an empty Docker tag in main-channel GoReleaser runs by using separate dockers_v2 entries with channel-specific disable rules. This keeps `:main` and release tags explicit and always non-empty. --- _Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.61`_ <!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.61 -->
1 parent 738b747 commit f6e48d2

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

‎.goreleaser.yaml‎

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ release:
3030
disable: '{{ eq .Env.GORELEASER_CHANNEL "main" }}'
3131

3232
dockers_v2:
33-
- id: coder-k8s-image
33+
- id: coder-k8s-image-main
34+
disable: '{{ ne .Env.GORELEASER_CHANNEL "main" }}'
3435
dockerfile: Dockerfile.goreleaser
3536
ids:
3637
- coder-k8s
3738
images:
3839
- ghcr.io/coder/coder-k8s
3940
tags:
40-
- '{{ if eq .Env.GORELEASER_CHANNEL "main" }}main{{ else }}{{ .Version }}{{ end }}'
41-
- '{{ if ne .Env.GORELEASER_CHANNEL "main" }}latest{{ end }}'
41+
- main
4242
platforms:
4343
- linux/amd64
4444
- linux/arm64
@@ -50,7 +50,37 @@ dockers_v2:
5050
org.opencontainers.image.documentation: https://coder.github.io/coder-k8s/
5151
org.opencontainers.image.title: coder-k8s
5252
org.opencontainers.image.description: Kubernetes operator for Coder
53-
org.opencontainers.image.version: '{{ if eq .Env.GORELEASER_CHANNEL "main" }}main{{ else }}{{ .Version }}{{ end }}'
53+
org.opencontainers.image.version: main
54+
org.opencontainers.image.revision: "{{ .FullCommit }}"
55+
org.opencontainers.image.vendor: Coder
56+
org.opencontainers.image.licenses: Apache-2.0
57+
org.opencontainers.image.authors: Coder
58+
flags:
59+
- "--pull=true"
60+
- "--provenance=false"
61+
62+
- id: coder-k8s-image-release
63+
disable: '{{ eq .Env.GORELEASER_CHANNEL "main" }}'
64+
dockerfile: Dockerfile.goreleaser
65+
ids:
66+
- coder-k8s
67+
images:
68+
- ghcr.io/coder/coder-k8s
69+
tags:
70+
- "{{ .Version }}"
71+
- latest
72+
platforms:
73+
- linux/amd64
74+
- linux/arm64
75+
sbom: false
76+
labels:
77+
org.opencontainers.image.created: "{{ .Date }}"
78+
org.opencontainers.image.source: https://github.com/coder/coder-k8s
79+
org.opencontainers.image.url: https://coder.github.io/coder-k8s/
80+
org.opencontainers.image.documentation: https://coder.github.io/coder-k8s/
81+
org.opencontainers.image.title: coder-k8s
82+
org.opencontainers.image.description: Kubernetes operator for Coder
83+
org.opencontainers.image.version: "{{ .Version }}"
5484
org.opencontainers.image.revision: "{{ .FullCommit }}"
5585
org.opencontainers.image.vendor: Coder
5686
org.opencontainers.image.licenses: Apache-2.0

0 commit comments

Comments
 (0)