Questions tagged [goreleaser]

GoReleaser is a release automation tool written in Golang to release Golang projects.

24 questions
5
votes
1 answer

How to set `-ldflags` values for each target in Goreleaser?

I need to set Os/Arch variable for each build target. My initial thought was to have a script that would calculate these variables and using hooks to run this script every target. .goreleaser.yaml: builds: hooks: pre: - sh variables.sh …
4
votes
1 answer

How to make a goreleaser script to build a deb file locally?

I am an absolute novice in Golang but I want to modify a Go build script to build a file locally only instead of publishing it to GitHub. https://github.com/dahendel/docker-machine-driver-cloudstack/blob/master/.goreleaser.yml How to proceed?
Open Food Broker
  • 1,095
  • 1
  • 8
  • 31
3
votes
1 answer

GoReleaser and ssh-agent Github Actions: Why could not read Username ... terminal prompts disabled?

I have been going around and around between instructions for GitHub Actions, GoReleaser, and Ssh-Agent and cannot get my simple release build script to work. My goal is simple... I have a go private repository containing a CLI application and its…
A Bit of Help
  • 1,368
  • 19
  • 36
2
votes
0 answers

Login to ecr and push build image to it with the help of gorelaeser

I have created make release process with the help of gorelaeser . But in my case I need to build and push image to ECR. Currently before building image I'm login to ecr and then building image but don't know how to push image via…
2
votes
1 answer

GoReleaser cross compilation fails

I'm trying to release my project in both linux and windwos machines without success. I have tried to explicitly define the -CC to few options but non of them worked in both machines. Pre installed packages: sudo apt-get install build-essential sudo…
OmerMichleviz
  • 93
  • 1
  • 6
2
votes
1 answer

How to set up GoReleaser to push a brew tap to a different repo

I'm looking to set up a github action script on a private github repo which pushes a release and brew tap to a separate public git repo. I've created a .gorelease.yml file and specified a brews section like this: brews: - name: myrepo goarm: 6 …
Jay K.
  • 546
  • 2
  • 10
  • 17
1
vote
1 answer

Is there a configuration-free way to distribute a private go CLI?

I have a CLI written with go within a private repository in an organization at Github. I want to distribute this CLI to other developers who have access to this repository. I tried using goreleaser with a brew tap but it required extra…
parvula
  • 31
  • 5
1
vote
0 answers

How can I fix "gpg: signing failed: No secret key" for GoReleaser?

Context: Here's a GoReleaser project I'm using. How to reproduce: Export multiple env vars into .release_env: GOPATH="..." GPG_FINGERPRINT="..." GPG_PASSWORD="..." GPG_KEY="..." where GPG_KEY is GPG_PRIVATE_KEY but this project calls it…
Ivan Petrov
  • 135
  • 2
  • 8
1
vote
2 answers

How can I reproduce a goreleaser run locally?

Context: there's a repo that uses GoReleaser tool that compiles binaries and releases it to GitHub. As described in this issue, a commit tagged v1.32.0 resulted in a release with dynamically linked binaries -- and that's OK: for example, if you…
Kostya Linou
  • 113
  • 7
1
vote
0 answers

Go Release Binaries failed

I'm trying to build my go project with github action and releasing it on my own repository. As mentioned Go Release Binaries, I wrote my own .yml file but I got error on building flow. name: Release API binary on: push: tags: -…
armin ajdehnia
  • 145
  • 1
  • 9
1
vote
1 answer

Goreleaser did not find GITHUB_TOKEN

I have a project and I'm trying to set up goreleaser using GitHub Actions. But I'm getting an error: GoReleaser latest installed successfully v0.1.0 tag found for commit '96480db' /opt/hostedtoolcache/goreleaser-action/1.10.2/x64/goreleaser release…
fabelx
  • 197
  • 1
  • 12
1
vote
0 answers

How to pass gcc flags from goreleaser file, to link libraries

I'm running goreleaser build -f goreleaser_build.yml, on REHL linux. When setting no flag, the binary it builds has a few shared dynamic linked libraries: linux-vdso.so.1 => (0x00007fff239f6000) libm.so.6 => /lib64/libm.so.6…
Muwei He
  • 11
  • 2
1
vote
1 answer

operation timedout while publishing artifacts to gitlab using goreleser

I am using golang to create a simple CLI application. I am using GoReleaser to release this to Gitlab. I followed the steps outlined in https://goreleaser.com/quick-start/ to release changes to gitlab. I have generated a personal access token with…
sinsanarya
  • 73
  • 12
1
vote
1 answer

goreleaser signing using gon - bundle format unrecognized, invalid, or unsuitable

I am trying to sign my golang using goreleaser - and eventually distribute using Homebrew. But this will require signing with Apple Developer ID to be able to distribute to MacOs. Have you seen the following error using gon and fixed it? yaml sample…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
1
vote
1 answer

How to goreleaser to build sub-folder in github

I use goreleaser to build in github action. Because my main.go in ./cmd/tes_cli, it always show error in github action. repo does not contain a main function. I check the original document, it seems "builds" could works. my configuration could not…
Evan Lin
  • 1,272
  • 1
  • 12
  • 25
1
2