Skip to content

Commit

Permalink
chore: Upgrade configuration to latest goreleaser version
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyno-zeta committed Jul 27, 2024
1 parent ea879dd commit 1c18f2b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
46 changes: 32 additions & 14 deletions .goreleaser.yml → .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com

# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 2

project_name: s3-proxy

before:
hooks:
- make code/clean
- make setup/dep/install

builds:
- main: ./cmd/s3-proxy
binary: s3-proxy
Expand All @@ -24,38 +34,46 @@ builds:
- arm
- arm64
goarm:
- 6
- 7
- "6"
- "7"
goos:
- windows
- darwin
- linux
ignore:
- goos: darwin
goarch: 386
goarch: "386"

archives:
- format_overrides:
- goos: windows
format: zip
- format: tar.gz
files:
- LICENSE
- README.md
- templates/*
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"

release:
github:
owner: oxyno-zeta
name: s3-proxy
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

dockers:
- goos: linux
goarch: amd64
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ code/build: code/clean setup/dep/install
.PHONY: code/build-cross
code/build-cross: code/clean setup/dep/install
ifdef HAS_GORELEASER
goreleaser -p 2 --snapshot --skip-publish
goreleaser -p 2 --snapshot
endif
ifndef HAS_GORELEASER
curl -sL https://git.io/goreleaser | bash -s -- -p 2 --snapshot --skip-publish
curl -sL https://git.io/goreleaser | bash -s -- -p 2 --snapshot
endif

.PHONY: code/clean
Expand Down

0 comments on commit 1c18f2b

Please sign in to comment.