Skip to content

Commit

Permalink
Updated goreleaser.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Gupta <manish@plane.so>
  • Loading branch information
mguptahub committed Sep 4, 2024
1 parent 15d2131 commit 392b8ec
Showing 1 changed file with 63 additions and 70 deletions.
133 changes: 63 additions & 70 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,16 @@ builds:
- CGO_ENABLED=0
goarch:
- amd64
- arm
- arm64
- s390x
- ppc64le
goarm:
- 7
# - arm
# - s390x
# - ppc64le
# goarm:
# - 7
goos:
- linux
- darwin
- windows
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
# - windows
ldflags:
- >-
-X github.com/helm/chart-releaser/cr/cmd.Version={{ .Tag }}
Expand Down Expand Up @@ -90,75 +83,75 @@ dockers:
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm

- goos: linux
goarch: arm
goarm: 7
skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- mguptahub/chart-releaser:{{ .Tag }}-armv7
- mguptahub/chart-releaser:latest-armv7
- ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
- ghcr.io/helm/chart-releaser:latest-armv7
build_flag_templates:
- "--platform=linux/arm/v7"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
# - goos: linux
# goarch: arm
# goarm: 7
# skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
# dockerfile: Dockerfile
# use: buildx
# image_templates:
# - mguptahub/chart-releaser:{{ .Tag }}-armv7
# - mguptahub/chart-releaser:latest-armv7
# - ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
# - ghcr.io/helm/chart-releaser:latest-armv7
# build_flag_templates:
# - "--platform=linux/arm/v7"
# - --label=org.label-schema.schema-version=1.0
# - --label=org.label-schema.version={{ .Version }}
# - --label=org.label-schema.name={{ .ProjectName }}
# - --label=org.label-schema.build-date={{ .Date }}
# - --label=org.label-schema.description='cr - The chart release tool'
# - --label=org.label-schema.vendor=Helm

- goos: linux
goarch: s390x
skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- mguptahub/chart-releaser:{{ .Tag }}-s390x
- mguptahub/chart-releaser:latest-s390x
build_flag_templates:
- "--platform=linux/s390x"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
# - goos: linux
# goarch: s390x
# skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
# dockerfile: Dockerfile
# use: buildx
# image_templates:
# - mguptahub/chart-releaser:{{ .Tag }}-s390x
# - mguptahub/chart-releaser:latest-s390x
# build_flag_templates:
# - "--platform=linux/s390x"
# - --label=org.label-schema.schema-version=1.0
# - --label=org.label-schema.version={{ .Version }}
# - --label=org.label-schema.name={{ .ProjectName }}
# - --label=org.label-schema.build-date={{ .Date }}
# - --label=org.label-schema.description='cr - The chart release tool'
# - --label=org.label-schema.vendor=Helm

- goos: linux
goarch: ppc64le
skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- mguptahub/chart-releaser:{{ .Tag }}-ppc64le
- mguptahub/chart-releaser:latest-ppc64le
build_flag_templates:
- "--platform=linux/ppc64le"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
# - goos: linux
# goarch: ppc64le
# skip_push: "{{ ne .GitURL 'https://github.com/mguptahub/chart-releaser' | toYaml }}"
# dockerfile: Dockerfile
# use: buildx
# image_templates:
# - mguptahub/chart-releaser:{{ .Tag }}-ppc64le
# - mguptahub/chart-releaser:latest-ppc64le
# build_flag_templates:
# - "--platform=linux/ppc64le"
# - --label=org.label-schema.schema-version=1.0
# - --label=org.label-schema.version={{ .Version }}
# - --label=org.label-schema.name={{ .ProjectName }}
# - --label=org.label-schema.build-date={{ .Date }}
# - --label=org.label-schema.description='cr - The chart release tool'
# - --label=org.label-schema.vendor=Helm

docker_manifests:
- name_template: mguptahub/chart-releaser:{{ .Tag }}
image_templates:
- mguptahub/chart-releaser:{{ .Tag }}-amd64
- mguptahub/chart-releaser:{{ .Tag }}-arm64
- mguptahub/chart-releaser:{{ .Tag }}-armv7
- mguptahub/chart-releaser:{{ .Tag }}-s390x
- mguptahub/chart-releaser:{{ .Tag }}-ppc64le
# - mguptahub/chart-releaser:{{ .Tag }}-armv7
# - mguptahub/chart-releaser:{{ .Tag }}-s390x
# - mguptahub/chart-releaser:{{ .Tag }}-ppc64le
- name_template: mguptahub/chart-releaser:latest
image_templates:
- mguptahub/chart-releaser:latest-amd64
- mguptahub/chart-releaser:latest-arm64
- mguptahub/chart-releaser:latest-armv7
- mguptahub/chart-releaser:latest-s390x
- mguptahub/chart-releaser:latest-ppc64le
# - mguptahub/chart-releaser:latest-armv7
# - mguptahub/chart-releaser:latest-s390x
# - mguptahub/chart-releaser:latest-ppc64le

signs:
- id: all
Expand Down

0 comments on commit 392b8ec

Please sign in to comment.