Skip to content

Commit 9b14f48

Browse files
committed
feat: add docker labels of the OCI Image Format Specification
1 parent 5b3bd3b commit 9b14f48

File tree

1 file changed

+124
-9
lines changed

1 file changed

+124
-9
lines changed

.goreleaser.yaml

+124-9
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ archives:
137137
{{- if not (eq .Amd64 \"v1\") }}{{ .Amd64 }}{{ end }}"
138138
builds:
139139
- go-feature-flag-migration-cli
140-
140+
141141
- id: go-feature-flag-editor
142142
name_template: "go-feature-flag-editor_\
143143
{{ .Version }}_\
@@ -216,6 +216,14 @@ dockers:
216216
- thomaspoignant/go-feature-flag-relay-proxy:v{{ .RawVersion }}-amd64
217217
build_flag_templates:
218218
- "--platform=linux/amd64"
219+
- "--label=org.opencontainers.image.created={{ .Date }}"
220+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
221+
- "--label=org.opencontainers.image.licenses=MIT"
222+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
223+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
224+
- "--label=org.opencontainers.image.title=go-feature-flag-relay-proxy"
225+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
226+
- "--label=org.opencontainers.image.version={{ .Version }}"
219227
- use: buildx
220228
goos: linux
221229
goarch: arm64
@@ -226,6 +234,14 @@ dockers:
226234
- thomaspoignant/go-feature-flag-relay-proxy:v{{ .RawVersion }}-arm64v8
227235
build_flag_templates:
228236
- "--platform=linux/arm64/v8"
237+
- "--label=org.opencontainers.image.created={{ .Date }}"
238+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
239+
- "--label=org.opencontainers.image.licenses=MIT"
240+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
241+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
242+
- "--label=org.opencontainers.image.title=go-feature-flag-relay-proxy"
243+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
244+
- "--label=org.opencontainers.image.version={{ .Version }}"
229245
- use: buildx
230246
goos: linux
231247
goarch: arm
@@ -237,6 +253,14 @@ dockers:
237253
- thomaspoignant/go-feature-flag-relay-proxy:v{{ .RawVersion }}-armv7
238254
build_flag_templates:
239255
- "--platform=linux/arm/v7"
256+
- "--label=org.opencontainers.image.created={{ .Date }}"
257+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
258+
- "--label=org.opencontainers.image.licenses=MIT"
259+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
260+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
261+
- "--label=org.opencontainers.image.title=go-feature-flag-relay-proxy"
262+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
263+
- "--label=org.opencontainers.image.version={{ .Version }}"
240264

241265
# go-feature-flag
242266
- use: buildx
@@ -249,6 +273,14 @@ dockers:
249273
- thomaspoignant/go-feature-flag:v{{ .RawVersion }}-amd64
250274
build_flag_templates:
251275
- "--platform=linux/amd64"
276+
- "--label=org.opencontainers.image.created={{ .Date }}"
277+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
278+
- "--label=org.opencontainers.image.licenses=MIT"
279+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
280+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
281+
- "--label=org.opencontainers.image.title=go-feature-flag"
282+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
283+
- "--label=org.opencontainers.image.version={{ .Version }}"
252284
- use: buildx
253285
goos: linux
254286
goarch: arm64
@@ -259,6 +291,14 @@ dockers:
259291
- thomaspoignant/go-feature-flag:v{{ .RawVersion }}-arm64v8
260292
build_flag_templates:
261293
- "--platform=linux/arm64/v8"
294+
- "--label=org.opencontainers.image.created={{ .Date }}"
295+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
296+
- "--label=org.opencontainers.image.licenses=MIT"
297+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
298+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
299+
- "--label=org.opencontainers.image.title=go-feature-flag"
300+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
301+
- "--label=org.opencontainers.image.version={{ .Version }}"
262302
- use: buildx
263303
goos: linux
264304
goarch: arm
@@ -270,6 +310,14 @@ dockers:
270310
- thomaspoignant/go-feature-flag:v{{ .RawVersion }}-armv7
271311
build_flag_templates:
272312
- "--platform=linux/arm/v7"
313+
- "--label=org.opencontainers.image.created={{ .Date }}"
314+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
315+
- "--label=org.opencontainers.image.licenses=MIT"
316+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
317+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
318+
- "--label=org.opencontainers.image.title=go-feature-flag"
319+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
320+
- "--label=org.opencontainers.image.version={{ .Version }}"
273321

274322
# go-feature-flag-bookworm
275323
- use: buildx
@@ -282,6 +330,14 @@ dockers:
282330
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-amd64
283331
build_flag_templates:
284332
- "--platform=linux/amd64"
333+
- "--label=org.opencontainers.image.created={{ .Date }}"
334+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
335+
- "--label=org.opencontainers.image.licenses=MIT"
336+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
337+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
338+
- "--label=org.opencontainers.image.title=go-feature-flag"
339+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
340+
- "--label=org.opencontainers.image.version={{ .Version }}"
285341
- use: buildx
286342
goos: linux
287343
goarch: arm64
@@ -292,6 +348,14 @@ dockers:
292348
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-arm64v8
293349
build_flag_templates:
294350
- "--platform=linux/arm64/v8"
351+
- "--label=org.opencontainers.image.created={{ .Date }}"
352+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
353+
- "--label=org.opencontainers.image.licenses=MIT"
354+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
355+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
356+
- "--label=org.opencontainers.image.title=go-feature-flag"
357+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
358+
- "--label=org.opencontainers.image.version={{ .Version }}"
295359
- use: buildx
296360
goos: linux
297361
goarch: arm
@@ -303,6 +367,15 @@ dockers:
303367
- thomaspoignant/go-feature-flag-bookworm:v{{ .RawVersion }}-armv7
304368
build_flag_templates:
305369
- "--platform=linux/arm/v7"
370+
- "--label=org.opencontainers.image.created={{ .Date }}"
371+
- "--label=org.opencontainers.image.description=A stand alone server to run GO Feature Flag"
372+
- "--label=org.opencontainers.image.licenses=MIT"
373+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
374+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
375+
- "--label=org.opencontainers.image.title=go-feature-flag"
376+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/relay_proxy"
377+
- "--label=org.opencontainers.image.version={{ .Version }}"
378+
306379
# migration-cli
307380
- use: buildx
308381
goos: linux
@@ -314,6 +387,13 @@ dockers:
314387
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-amd64
315388
build_flag_templates:
316389
- "--platform=linux/amd64"
390+
- "--label=org.opencontainers.image.created={{ .Date }}"
391+
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
392+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
393+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
394+
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
395+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
396+
- "--label=org.opencontainers.image.version={{ .Version }}"
317397
- use: buildx
318398
goos: linux
319399
goarch: arm64
@@ -324,6 +404,13 @@ dockers:
324404
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-arm64v8
325405
build_flag_templates:
326406
- "--platform=linux/arm64/v8"
407+
- "--label=org.opencontainers.image.created={{ .Date }}"
408+
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
409+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
410+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
411+
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
412+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
413+
- "--label=org.opencontainers.image.version={{ .Version }}"
327414
- use: buildx
328415
goos: linux
329416
goarch: arm
@@ -335,6 +422,13 @@ dockers:
335422
- thomaspoignant/go-feature-flag-migration-cli:v{{ .RawVersion }}-armv7
336423
build_flag_templates:
337424
- "--platform=linux/arm/v7"
425+
- "--label=org.opencontainers.image.created={{ .Date }}"
426+
- "--label=org.opencontainers.image.description=A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
427+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
428+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
429+
- "--label=org.opencontainers.image.title=go-feature-flag-migration-cli"
430+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
431+
- "--label=org.opencontainers.image.version={{ .Version }}"
338432

339433
# lint
340434
- use: buildx
@@ -347,6 +441,13 @@ dockers:
347441
- thomaspoignant/go-feature-flag-lint:v{{ .RawVersion }}-amd64
348442
build_flag_templates:
349443
- "--platform=linux/amd64"
444+
- "--label=org.opencontainers.image.created={{ .Date }}"
445+
- "--label=org.opencontainers.image.description=A command line tool to lint your feature flag configuration file"
446+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
447+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
448+
- "--label=org.opencontainers.image.title=go-feature-flag-lint"
449+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/linter"
450+
- "--label=org.opencontainers.image.version={{ .Version }}"
350451
- use: buildx
351452
goos: linux
352453
goarch: arm64
@@ -357,6 +458,13 @@ dockers:
357458
- thomaspoignant/go-feature-flag-lint:v{{ .RawVersion }}-arm64v8
358459
build_flag_templates:
359460
- "--platform=linux/arm64/v8"
461+
- "--label=org.opencontainers.image.created={{ .Date }}"
462+
- "--label=org.opencontainers.image.description=A command line tool to lint your feature flag configuration file"
463+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
464+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
465+
- "--label=org.opencontainers.image.title=go-feature-flag-lint"
466+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/linter"
467+
- "--label=org.opencontainers.image.version={{ .Version }}"
360468
- use: buildx
361469
goos: linux
362470
goarch: arm
@@ -368,6 +476,13 @@ dockers:
368476
- thomaspoignant/go-feature-flag-lint:v{{ .RawVersion }}-armv7
369477
build_flag_templates:
370478
- "--platform=linux/arm/v7"
479+
- "--label=org.opencontainers.image.created={{ .Date }}"
480+
- "--label=org.opencontainers.image.description=A command line tool to lint your feature flag configuration file"
481+
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
482+
- "--label=org.opencontainers.image.source=https://github.com/thomaspoignant/go-feature-flag"
483+
- "--label=org.opencontainers.image.title=go-feature-flag-lint"
484+
- "--label=org.opencontainers.image.url=https://gofeatureflag.org/docs/tooling/linter"
485+
- "--label=org.opencontainers.image.version={{ .Version }}"
371486

372487
docker_manifests:
373488
# DEPRECATED: check go-feature-flag
@@ -583,7 +698,7 @@ brews:
583698
name: homebrew-tap
584699
branch: master
585700
caveats: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
586-
homepage: "https://github.com/thomaspoignant/go-feature-flag/cmd/migrationcli"
701+
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
587702
description: "A migration command line to move your feature flag configuration file from format GO Feature Flag v0.X to v1.X"
588703
skip_upload: auto
589704
# DEPRECATED: check go-feature-flag
@@ -595,7 +710,7 @@ brews:
595710
name: homebrew-tap
596711
branch: master
597712
caveats: "A stand alone server to run GO Feature Flag"
598-
homepage: "https://gofeatureflag.org"
713+
homepage: "https://gofeatureflag.org/docs/relay_proxy"
599714
description: "A stand alone server to run GO Feature Flag"
600715
skip_upload: auto
601716
- ids:
@@ -606,7 +721,7 @@ brews:
606721
name: homebrew-tap
607722
branch: master
608723
caveats: "A stand alone server to run GO Feature Flag"
609-
homepage: "https://gofeatureflag.org"
724+
homepage: "https://gofeatureflag.org/docs/relay_proxy"
610725
description: "A stand alone server to run GO Feature Flag"
611726
skip_upload: auto
612727
- ids:
@@ -617,7 +732,7 @@ brews:
617732
name: homebrew-tap
618733
branch: master
619734
caveats: "A command line tool to lint your feature flag configuration file"
620-
homepage: "https://gofeatureflag.org"
735+
homepage: "https://gofeatureflag.org/docs/tooling/linter"
621736
description: "A command line tool to lint your feature flag configuration file"
622737
skip_upload: auto
623738

@@ -630,7 +745,7 @@ scoops:
630745
owner: go-feature-flag
631746
name: scoop
632747
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
633-
homepage: "https://gofeatureflag.org"
748+
homepage: "https://gofeatureflag.org/docs/tooling/migrate_v0_v1"
634749
license: MIT
635750

636751
# DEPRECATED: check go-feature-flag
@@ -641,7 +756,7 @@ scoops:
641756
owner: go-feature-flag
642757
name: scoop
643758
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
644-
homepage: "https://gofeatureflag.org"
759+
homepage: "https://gofeatureflag.org/docs/relay_proxy"
645760
license: MIT
646761

647762
- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
@@ -651,7 +766,7 @@ scoops:
651766
owner: go-feature-flag
652767
name: scoop
653768
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
654-
homepage: "https://gofeatureflag.org"
769+
homepage: "https://gofeatureflag.org/docs/relay_proxy"
655770
license: MIT
656771

657772
- url_template: https://github.com/thomaspoignant/go-feature-flag/releases/download/{{ .Tag }}/{{ .ArtifactName }}
@@ -661,7 +776,7 @@ scoops:
661776
owner: go-feature-flag
662777
name: scoop
663778
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
664-
homepage: "https://gofeatureflag.org"
779+
homepage: "https://gofeatureflag.org/docs/tooling/linter"
665780
license: MIT
666781

667782
snapshot:

0 commit comments

Comments
 (0)