Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit a4b021c

Browse files
committed
Embed default config in goreleaser build hook
This will allow builds made outside of Github workflows get a valid default config. Closes #42.
1 parent b3f0974 commit a4b021c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
with:
1919
go-version: 1.17
2020

21-
- name: Copy default kube config
22-
run: cp assets/kube-config.yaml tmpl/kube-config.yaml
23-
2421
- name: Run GoReleaser
2522
uses: goreleaser/goreleaser-action@v2
2623
with:

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ before:
44
hooks:
55
# You may remove this if you don't use go modules.
66
- go mod tidy
7+
- sh -c "if [[ ! -f tmpl/kube-config.yaml ]]; then cp assets/kube-config.yaml tmpl/; fi"
78
builds:
89
- env:
910
- CGO_ENABLED=0

0 commit comments

Comments
 (0)