Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
version: latest
version: v2.15.4
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,28 @@ jobs:

- name: Check rename
run: kubectl get pvc pvc-new
test-release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.26.x

- name: Validate goreleaser config
uses: goreleaser/goreleaser-action@v7
with:
version: v2.15.4
args: check

- name: Create snapshot release (dry-run)
uses: goreleaser/goreleaser-action@v7
with:
version: v2.15.4
args: release --snapshot --clean
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: 2

project_name: rename-pvc

snapshot:
name_template: '{{ .Tag }}-SNAPSHOT'
version_template: '{{ .Tag }}-SNAPSHOT'

before:
hooks:
Expand Down Expand Up @@ -29,8 +31,8 @@ builds:
- arm64

archives:
- format: tar.gz
- formats: ["tar.gz"]
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
formats: ["zip"]
Loading