Skip to content

Commit

Permalink
build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Jun 29, 2023
1 parent ff99a83 commit 7e392bf
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ builds:
- binary: gloomberg
env: ["CGO_ENABLED=0"]
flags: ["-trimpath"]
goos: [linux, darwin]
goos: [linux, darwin, windows]
goarch: [amd64, arm64]

ignore: [{ goos: windows, goarch: arm64 }]
# Set the modified timestamp on the output binary, typically
# you would do this to ensure a build was reproducible. Pass
# empty string to skip modifying the output.
Expand All @@ -38,21 +39,37 @@ universal_binaries:
replace: true

dockers:
- image_templates: ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64"]
- image_templates:
[
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64",
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64",
]
use: buildx
dockerfile: .github/run.Dockerfile
build_flag_templates: ["--platform=linux/amd64"]
- image_templates: ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64"]
- image_templates:
[
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64",
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64",
]
use: buildx
goarch: arm64
dockerfile: .github/run.Dockerfile
build_flag_templates: ["--platform=linux/arm64/v8"]

docker_manifests:
- name_template: "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}"
image_templates: ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64"]
image_templates:
[
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64",
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64",
]
- name_template: "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest"
image_templates: ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64"]
image_templates:
[
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64",
"{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64",
]

kos:
- repository: "ghcr.io/benleb/gloomberg"
Expand Down

0 comments on commit 7e392bf

Please sign in to comment.