Skip to content

Commit a732f25

Browse files
committed
fix homebrew
1 parent f21632e commit a732f25

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.goreleaser.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# .goreleaser.yml
22

3+
version: 2
34
project_name: canary-gate
45
before:
56
hooks:
@@ -9,7 +10,7 @@ builds:
910
# Statically compiled binary
1011
env:
1112
- CGO_ENABLED=0
12-
main: ./cli/main
13+
main: ./cli/
1314
goos:
1415
- linux
1516
- darwin
@@ -18,22 +19,24 @@ builds:
1819
- arm64
1920

2021
archives:
21-
- format: tar.gz
22+
- formats:
23+
- tar.gz
2224
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
23-
builds:
24-
- linux
25-
- darwin
2625

2726
checksum:
2827
name_template: 'checksums.txt'
2928

30-
brews:
29+
homebrew_casks:
3130
- name: canary-gate
3231
homepage: "https://github.com/KongZ/canary-gate"
3332
description: "A Canary-Gate CLI tool for managing canary deployments."
3433
license: "Apache-2.0"
35-
install: |
36-
bin.install "canary-gate"
34+
hooks:
35+
post:
36+
install: |
37+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
38+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/canary-gate"]
39+
end
3740
repository:
3841
owner: "KongZ"
3942
name: "homebrew-tap"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ See full installation detail from [https://docs.flagger.app/install/flagger-inst
120120
```bash
121121
helm -n canary-gate install \
122122
canary-gate oci://ghcr.io/kongz/helm-charts/canary-gate \
123-
--version 0.1.2
123+
--version 0.1.3
124124
```
125125

126126
If you encounter problems with the installed Custom Resource Definition (CRD) file, you may need to install the CRD prior to continuing with the Helm installation.

0 commit comments

Comments
 (0)