Replies: 4 comments 1 reply
-
Thanks! Currently goreleaser uses whatever is available (e.g. if GITHUB_TOKEN is set, it'll push everything to github), maybe we should allow to set a "provider" or something like that In the meantime, it might be possible if you push to git directly instead of using the APIs, e.g. brews:
- ...: ...
repository:
owner: foo
name: bar
git:
url: 'ssh://git@github.com:foo/bar.git'
private_key: '{{ .Env.PRIVATE_KEY_PATH }}' PS: I haven't test this particular scenario |
Beta Was this translation helpful? Give feedback.
-
Since there is only one SCM allowed for one configuration, I thought of using another pipeline job that only takes care of the GitHub token forcefuly and publishes the Brew formula while skipping the upload to the SCM. please your thoughts? .goreleaser-brew.yml
|
Beta Was this translation helpful? Give feedback.
-
oh !!
|
Beta Was this translation helpful? Give feedback.
-
Here's how I approached the issue: I utilized two configuration files: .goreleaser.yaml for releasing artifacts to GitLab and our organization's artifact server, Both configurations executed successfully. However, a problem arose where the Homebrew formula was utilizing a different SHA256 checksum due to variations in the builds. To resolve this discrepancy, I aimed to ensure consistency by having the Homebrew tap formula use the checksum generated from the output specified in .goreleaser.yaml. Could you please provide me with some guidance on how to achieve this? Your help would be highly appreciated. 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hi
Thank you so much for the wonderful project !!!
I'm curious if anyone has successfully set up a workflow to publish Homebrew taps from a GitLab CI pipeline to a GitHub repository.
Specifically, I'm interested in understanding:
Whether it's feasible to publish Homebrew taps directly from a GitLab CI pipeline to a GitHub repository?
Any potential challenges or best practices in accomplishing this integration?
Any existing workflows or examples that demonstrate this setup?
Any insights, tips, or pointers to relevant resources would be greatly appreciated. Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions