Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: improve goreleaser

jon4hz1871d1a84261
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index b2d9f310f7..03ffd3e169 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -14,7 +14,9 @@ before:
builds:
- id: darwin-build
binary: infisical
- ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Env.CLI_VERSION }}
+ ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Version }}
+ flags:
+ - -trimpath
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
@@ -25,10 +27,14 @@ builds:
- goos: darwin
goarch: "386"
dir: ./cli
+
- id: all-other-builds
env:
- CGO_ENABLED=0
binary: infisical
+ ldflags: -X github.com/Infisical/infisical-merge/packages/util.CLI_VERSION={{ .Version }}
+ flags:
+ - -trimpath
goos:
- freebsd
- linux
@@ -66,8 +72,10 @@ release:
checksum:
name_template: 'checksums.txt'
+
snapshot:
name_template: "{{ incpatch .Version }}"
+
changelog:
sort: asc
filters:
@@ -81,6 +89,7 @@ changelog:
# - infisical
# dir: "{{ dir .ArtifactPath }}"
# cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/infisical/
+
brews:
- name: infisical
tap:
@@ -92,6 +101,7 @@ brews:
folder: Formula
homepage: "https://infisical.com"
description: "The official Infisical CLI"
+
nfpms:
- id: infisical
package_name: infisical
@@ -117,6 +127,7 @@ nfpms:
dst: /usr/share/zsh/site-functions/_infisical
- src: ./manpages/infisical.1.gz
dst: /usr/share/man/man1/infisical.1.gz
+
scoop:
bucket:
owner: Infisical
@@ -127,6 +138,7 @@ scoop:
homepage: "https://infisical.com"
description: "The official Infisical CLI"
license: MIT
+
aurs:
-
name: infisical-bin
diff --git a/cli/packages/util/constants.go b/cli/packages/util/constants.go
index aaff2cb5b3..5c169f6d50 100644
--- a/cli/packages/util/constants.go
+++ b/cli/packages/util/constants.go
@@ -14,5 +14,5 @@ const (
)
var (
- CLI_VERSION = "v0.2.11"
+ CLI_VERSION = "devel"
)