Skip to content

Commit

Permalink
Replace deprecated goreleaser options with version 2 replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
abecevello committed Oct 8, 2024
1 parent a716b71 commit 6886b93
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:
with:
distribution: goreleaser
version: v1.10.3
args: release --rm-dist --release-notes=tmp/release_changelog.md
args: release --clean --release-notes=tmp/release_changelog.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ jobs:
with:
distribution: goreleaser
version: v1.10.3
args: build --snapshot --rm-dist --skip-post-hooks --skip-validate --single-target
args: build --snapshot --clean --skip=post-hooks,validate --single-target
env:
GOOS: linux
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
version: 2

project_name: toxiproxy

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ container.build:

.PHONY: release
release:
goreleaser release --rm-dist
goreleaser release --clean

.PHONY: release-dry
release-dry:
goreleaser release --rm-dist --skip-publish --skip-validate
goreleaser release --clean --skip=publish,validate

.PHONY: setup
setup:
Expand Down
6 changes: 3 additions & 3 deletions scripts/test-release
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ "${ARCH}" == "x86_64" ]; then
ARCH="amd64"
fi

goreleaser release --rm-dist --skip-publish --skip-validate
goreleaser release --clean --skip=publish,validate

docker run -v "$(PWD)"/dist:/dist --pull always --rm -it ubuntu bash -c \
"set -xe;
Expand Down Expand Up @@ -47,13 +47,13 @@ docker run -v "$(PWD)"/dist:/dist --pull always --rm -it alpine sh -c \
tar -ztvf dist/toxiproxy_*_linux_amd64.tar.gz | grep -o -e toxiproxy-server
tar -ztvf dist/toxiproxy_*_linux_amd64.tar.gz | grep -o -e toxiproxy-cli

goreleaser build --rm-dist --single-target --skip-validate --id server
goreleaser build --clean --single-target --skip=validate --id server
bineries=(./dist/toxiproxy-server-*)
server="${bineries[0]}"
$server --help 2>&1 | grep -o -e "Usage of ./dist/toxiproxy-server"
$server --version | grep -o -e "toxiproxy-server version ${VERSION}"

goreleaser build --rm-dist --single-target --skip-validate --id client
goreleaser build --clean --single-target --skip=validate --id client
bineries=(./dist/toxiproxy-cli-*)
cli="${bineries[0]}"
$cli --help 2>&1 |
Expand Down

0 comments on commit 6886b93

Please sign in to comment.