Skip to content

Commit

Permalink
Chore: update goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Apr 18, 2023
1 parent c5d9e94 commit e1ae5c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: release
on:
push:
tags:
- '*'
- 'v*'

jobs:
goreleaser:
Expand All @@ -25,6 +25,6 @@ jobs:
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --config ./.goreleaser.ci.yml --rm-dist --snapshot
args: release --config ./.goreleaser.ci.yml --clean --snapshot
- name: Copy .ini files
run: cp targets.ini rbls.ini ./dist/dnsbl_exporter_linux_amd64_v1
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
- uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --rm-dist
args: release --snapshot --clean
5 changes: 0 additions & 5 deletions .goreleaser.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project_name: dnsbl_exporter
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./dnsbl_exporter.go
binary: dnsbl-exporter
Expand All @@ -16,10 +15,6 @@ builds:
archives:
- files:
- none*
replacements:
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
9 changes: 2 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project_name: dnsbl_exporter
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./dnsbl_exporter.go
binary: dnsbl-exporter
Expand Down Expand Up @@ -33,6 +32,7 @@ dockers:
- rbls.ini
- targets.ini
goarch: amd64
goos: linux
- image_templates:
- 'ghcr.io/luzilla/{{.ProjectName}}:{{ .Tag }}-arm64'
dockerfile: Dockerfile
Expand All @@ -49,6 +49,7 @@ dockers:
- rbls.ini
- targets.ini
goarch: arm64
goos: linux
docker_manifests:
- name_template: ghcr.io/luzilla/{{.ProjectName}}:{{ .Tag }}
image_templates:
Expand All @@ -57,12 +58,6 @@ docker_manifests:
archives:
- files:
- none*
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit e1ae5c6

Please sign in to comment.