Skip to content

Commit

Permalink
update goreleaser to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Jul 11, 2023
1 parent 41f7851 commit 20d071a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
env:
CI: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clear
Expand Down
47 changes: 20 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ before:
# Build dependencies
- make build-deps
builds:
- env: [CGO_ENABLED=0]
- env: [ CGO_ENABLED=0 ]
goos:
- linux
- windows
Expand All @@ -21,55 +21,48 @@ builds:
universal_binaries:
- replace: true
dockers:
- image_templates:
- 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"
use: buildx
build_flag_templates:
dockerfile: "build/gorDockerfile"
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:
- 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:
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:
- name_template: stevenweathers/{{.ProjectName}}:latest
image_templates:
- stevenweathers/{{.ProjectName}}:latest-amd64
- stevenweathers/{{.ProjectName}}:latest-arm64v8
- name_template: stevenweathers/{{.ProjectName}}:{{ .Tag }}
image_templates:
- name_template: stevenweathers/{{.ProjectName}}:{{ .Tag }}
image_templates:
- stevenweathers/{{.ProjectName}}:{{ .Tag }}-amd64
- stevenweathers/{{.ProjectName}}:{{ .Tag }}-arm64v8
- name_template: ghcr.io/stevenweathers/{{.ProjectName}}:latest
image_templates:
- 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:
- name_template: ghcr.io/stevenweathers/{{.ProjectName}}:{{ .Tag }}
image_templates:
- 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
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -78,6 +71,6 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'
dist: release

0 comments on commit 20d071a

Please sign in to comment.