Skip to content

Commit

Permalink
chore: goreleaser - test ldflags secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
heronimus committed Mar 22, 2024
1 parent 61f3a67 commit 6369d74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
SENTRY_DSN: "${{ secrets.SENTRY_DSN }}"
POSTHOG_API_KEY: "${{ secrets.POSTHOG_API_KEY }}"
5 changes: 4 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ builds:
- SENTRY_DSN={{ if index .Env "SENTRY_DSN" }}{{ .Env.SENTRY_DSN }}{{ else }}default_null{{ end }}
- POSTHOG_API_KEY={{ if index .Env "POSTHOG_API_KEY" }}{{ .Env.POSTHOG_API_KEY }}{{ else }}default_null{{ end }}
ldflags:
- -s -w -X main.AppVersion={{.Version}} -X main.SentryDsn={{.Env.SENTRY_DSN}} -X main.PosthogApiKey={{.Env.POSTHOG_API_KEY}}
- -s -w
- -X main.AppVersion={{.Version}}
- -X main.SentryDsn={{.Env.SENTRY_DSN}}
- -X main.PosthogApiKey={{.Env.POSTHOG_API_KEY}}
goos:
- linux
- windows
Expand Down

0 comments on commit 6369d74

Please sign in to comment.