Skip to content

Commit

Permalink
REMOVE ME! Remove archs to make build faster for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Mar 9, 2023
1 parent 2f1d8b0 commit a4464f5
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
main: ./cmd/phlare
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
Expand Down Expand Up @@ -43,18 +38,9 @@ builds:
-X "github.com/grafana/phlare/pkg/util/build.BuildDate={{ .CommitTimestamp }}"
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
ignore:
- goos: windows
goarch: arm
main: ./cmd/profilecli
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
Expand Down Expand Up @@ -95,52 +81,16 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: arm
goarm: "6"
extra_files:
- cmd/phlare/phlare.yaml
dockerfile: ./cmd/phlare/Dockerfile
image_templates:
- "grafana/{{ .ProjectName }}:{{ .Version }}-armv6"
- "grafana/{{ .ProjectName }}:latest-armv6"
build_flag_templates:
- "--platform=linux/arm/v6"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- use: buildx
goos: linux
goarch: arm
goarm: "7"
dockerfile: ./cmd/phlare/Dockerfile
extra_files:
- cmd/phlare/phlare.yaml
image_templates:
- "grafana/{{ .ProjectName }}:{{ .Version }}-armv7"
- "grafana/{{ .ProjectName }}:latest-armv7"
build_flag_templates:
- "--platform=linux/arm/v7"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
docker_manifests:
# https://goreleaser.com/customization/docker_manifest/
- name_template: grafana/{{ .ProjectName }}:{{ .Version }}
image_templates:
- grafana/{{ .ProjectName }}:{{ .Version }}-amd64
- grafana/{{ .ProjectName }}:{{ .Version }}-arm64v8
- grafana/{{ .ProjectName }}:{{ .Version }}-armv6
- grafana/{{ .ProjectName }}:{{ .Version }}-armv7
- name_template: grafana/{{ .ProjectName }}:latest
image_templates:
- grafana/{{ .ProjectName }}:latest-amd64
- grafana/{{ .ProjectName }}:latest-arm64v8
- grafana/{{ .ProjectName }}:latest-armv6
- grafana/{{ .ProjectName }}:latest-armv7
archives:
- id: phlare
builds:
Expand Down

0 comments on commit a4464f5

Please sign in to comment.