From 0b6d7e82acfef5393d60510d0ef4efbac63d8e3d Mon Sep 17 00:00:00 2001 From: Victor Castell Date: Wed, 13 Dec 2023 00:07:15 +0100 Subject: [PATCH] Build light image --- .goreleaser.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 06d148841..f83a374b7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -161,6 +161,38 @@ dockers: build_flag_templates: - --platform=linux/arm/v7 + - image_templates: + - dkron/{{ .ProjectName }}:{{ .Version }}-light-amd64 + dockerfile: Dockerfile.release + use: buildx + goos: linux + goarch: amd64 + ids: &docker-ids + - dkron + build_flag_templates: + - --platform=linux/amd64 + + - image_templates: + - dkron/{{ .ProjectName }}:{{ .Version }}-light-arm64 + dockerfile: Dockerfile.release + use: buildx + goos: linux + goarch: arm64 + ids: *docker-ids + build_flag_templates: + - --platform=linux/arm64/v8 + + - image_templates: + - dkron/{{ .ProjectName }}:{{ .Version }}-light-armv7 + dockerfile: Dockerfile.release + use: buildx + goos: linux + goarch: arm + goarm: '7' + ids: *docker-ids + build_flag_templates: + - --platform=linux/arm/v7 + docker_manifests: - name_template: dkron/{{ .ProjectName }}:{{ .Version }} image_templates: @@ -174,6 +206,12 @@ docker_manifests: - dkron/{{ .ProjectName }}:{{ .Version }}-arm64 - dkron/{{ .ProjectName }}:{{ .Version }}-armv7 + - name_template: dkron/{{ .ProjectName }}:{{ .Version }}-light + image_templates: + - dkron/{{ .ProjectName }}:{{ .Version }}-light-amd64 + - dkron/{{ .ProjectName }}:{{ .Version }}-light-arm64 + - dkron/{{ .ProjectName }}:{{ .Version }}-light-armv7 + changelog: sort: asc filters: