Skip to content

Commit

Permalink
feat: publish -alpine suffixed Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Jun 11, 2024
1 parent 09c56eb commit 1b8e082
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ dockers:
- "--platform=linux/arm64/v8"

docker_manifests:
# For the Alpine image
# For backwards compatibility, we publish the :latest, :vX, and :x.y.z tags for Alpine without any suffix
# indicating that the image is Alpine based (unlike the debian12 images). This is because it's what was done historically,
# and we cannot change it yet without breaking existing users.
- name_template: "launchdarkly/ld-relay:{{ .Version}}"
skip_push: false
image_templates:
Expand All @@ -238,6 +240,32 @@ docker_manifests:
- "launchdarkly/ld-relay:latest-arm64v8"
- "launchdarkly/ld-relay:latest-i386"

# We'll also create aliases for the Alpine-based image with the suffix "-alpine" to make it easier to distinguish
# from the debian12 image. This will also allow us to eventually deprecate the non-suffixed tags in a future major version.
- name_template: "launchdarkly/ld-relay:{{ .Version}}-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-amd64"
- "launchdarkly/ld-relay:{{ .Version }}-armv7"
- "launchdarkly/ld-relay:{{ .Version }}-arm64v8"
- "launchdarkly/ld-relay:{{ .Version }}-i386"

- name_template: "launchdarkly/ld-relay:v{{ .Major }}-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:v{{ .Major }}-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-i386"

- name_template: "launchdarkly/ld-relay:latest-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:latest-amd64"
- "launchdarkly/ld-relay:latest-armv7"
- "launchdarkly/ld-relay:latest-arm64v8"
- "launchdarkly/ld-relay:latest-i386"

# For the static debian12 image
- name_template: "launchdarkly/ld-relay:latest-static-debian12-nonroot"
skip_push: false
Expand Down

0 comments on commit 1b8e082

Please sign in to comment.