Skip to content

Commit

Permalink
upgrade to goreleaser v2
Browse files Browse the repository at this point in the history
  • Loading branch information
nirdosh17 committed Aug 15, 2024
1 parent 94bf0dd commit 8b2e958
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.16
go-version: 1.22
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
version: "~> v2"
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
stack_teardown_details.json
cfn-teardown
dist
21 changes: 15 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# For more info about this file, check the documentation at http://goreleaser.com
version: 2
release:
github:
owner: nirdosh17/cfn-teardown
Expand All @@ -17,12 +18,20 @@ builds:
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build: ## install deps and build binary
run: build ## build and run binary
./cfn-teardown

test.start: ## start integration test
test.start: test.stop ## start integration test
docker build --platform linux/amd64 -t cfn-teardown-test -f test/Dockerfile .
docker compose -f test/docker-compose.yaml up --abort-on-container-exit --remove-orphans

Expand Down
6 changes: 3 additions & 3 deletions test/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ services:
localstack:
container_name: localstack-main
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
# ports:
# - "127.0.0.1:4566:4566" # LocalStack Gateway
# - "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-0}
Expand Down

0 comments on commit 8b2e958

Please sign in to comment.