Skip to content

Commit

Permalink
Update .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Mar 7, 2023
1 parent e7f9971 commit 2cbe3f9
Showing 1 changed file with 51 additions and 20 deletions.
71 changes: 51 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: google-domains-ddns-updater
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -9,36 +10,66 @@ before:
# Build dependencies
- make build-deps
builds:
-
- env: [CGO_ENABLED=0]
goos:
- linux
- darwin
- windows
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
env:
- CGO_ENABLED=0
- amd64
- arm64
universal_binaries:
- replace: true
dockers:
-
goos: linux
goarch: amd64
- image_templates:
- "stevenweathers/{{.ProjectName}}:{{ .Tag }}-amd64"
- "stevenweathers/{{.ProjectName}}:latest-amd64"
- "ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}-amd64"
- "ghcr.io/stevenweathers/{{.ProjectName}}:latest-amd64"
dockerfile: "build/gorDockerfile"
binaries:
- google-domains-ddns-updater
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/StevenWeathers/{{.ProjectName}}
- --label=org.opencontainers.image.source=https://github.com/StevenWeathers/{{.ProjectName}}
- image_templates:
- "stevenweathers/{{.ProjectName}}:{{ .Tag }}-arm64v8"
- "stevenweathers/{{.ProjectName}}:latest-arm64v8"
- "ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}-arm64v8"
- "ghcr.io/stevenweathers/{{.ProjectName}}:latest-arm64v8"
goarch: arm64
dockerfile: "build/gorDockerfile"
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/StevenWeathers/{{.ProjectName}}
- --label=org.opencontainers.image.source=https://github.com/StevenWeathers/{{.ProjectName}}
docker_manifests:
- name_template: stevenweathers/{{.ProjectName}}:latest
image_templates:
- stevenweathers/{{.ProjectName}}:latest-amd64
- stevenweathers/{{.ProjectName}}:latest-arm64v8
- name_template: stevenweathers/{{.ProjectName}}:{{ .Tag }}
image_templates:
- stevenweathers/{{.ProjectName}}:{{ .Tag }}-amd64
- stevenweathers/{{.ProjectName}}:{{ .Tag }}-arm64v8
- name_template: ghcr.io/stevenweathers/{{.ProjectName}}:latest
image_templates:
- ghcr.io/stevenweathers/{{.ProjectName}}:latest-amd64
- ghcr.io/stevenweathers/{{.ProjectName}}:latest-arm64v8
- name_template: ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}
image_templates:
- "stevenweathers/google-domains-ddns-updater:{{ .Tag }}"
- "stevenweathers/google-domains-ddns-updater:latest"
- ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}-amd64
- ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}-arm64v8
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
arm: arm
arm64: arm_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -47,6 +78,6 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'
dist: release

0 comments on commit 2cbe3f9

Please sign in to comment.