diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a678da4c..95249123 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,9 +3,12 @@ builds: - id: axoflow-otel-collector goos: - linux + - windows goarch: - amd64 - - arm64 + ignore: + - goos: windows + goarch: arm64 dir: distributions/axoflow-otel-collector/_build binary: axoflow-otel-collector ldflags: @@ -40,31 +43,10 @@ dockers: - --label=org.opencontainers.image.version={{.Version}} - --label=org.opencontainers.image.source={{.GitURL}} use: buildx - - goos: linux - goarch: arm64 - dockerfile: distributions/axoflow-otel-collector/Dockerfile - image_templates: - - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:{{ .Version }}-arm64 - - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:latest-arm64 - extra_files: - - configs/axoflow-otel-collector.yaml - build_flag_templates: - - --pull - - --platform=linux/arm64 - - --label=org.opencontainers.image.created={{.Date}} - - --label=org.opencontainers.image.name={{.ProjectName}} - - --label=org.opencontainers.image.revision={{.FullCommit}} - - --label=org.opencontainers.image.version={{.Version}} - - --label=org.opencontainers.image.source={{.GitURL}} - use: buildx docker_manifests: - name_template: ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:{{ .Version }} image_templates: - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:{{ .Version }}-amd64 - - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:{{ .Version }}-arm64 - name_template: ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:latest image_templates: - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:latest-amd64 - - ghcr.io/axoflow/axoflow-otel-collector/axoflow-otel-collector:latest-arm64 -release: - disable: true \ No newline at end of file diff --git a/cmd/goreleaser/internal/configure.go b/cmd/goreleaser/internal/configure.go index 44bcb210..e6fe1881 100644 --- a/cmd/goreleaser/internal/configure.go +++ b/cmd/goreleaser/internal/configure.go @@ -32,7 +32,8 @@ const ArmArch = "arm" var ( ImagePrefixes = []string{"ghcr.io/axoflow/axoflow-otel-collector"} - Architectures = []string{"amd64", "arm64"} + // Architectures = []string{"amd64", "arm64"} + Architectures = []string{"amd64"} ArmVersions = []string{} ) @@ -69,9 +70,12 @@ func Build(dist string) config.Build { Flags: []string{"-trimpath"}, Ldflags: []string{"-s", "-w"}, }, - Goos: []string{"linux"}, + Goos: []string{"linux", "windows"}, Goarch: Architectures, Goarm: ArmVersions, + Ignore: []config.IgnoredBuild{ + {Goos: "windows", Goarch: "arm64"}, + }, } }