Trendyol Tech
Published in

Trendyol Tech

Photo by Diana Parkhouse on Unsplash

Distribute your Binaries hosted on a private GitLab repository with HomeBrew using GoReleaser 🎁🫣

# .goreleaser.yml
gitlab_urls:
use_package_registry: true
> https://goreleaser.com/scm/gitlab/#gitlab-enterprise-or-private-hosted
?private_token={{ .Env.DOWNLOADER_TOKEN }}
brew tap pe-container/tools <private-gitlab-url>
brew install kcfgctl

⭐️Bonus: What did you do if your local package is not upgraded even if the new version of your project gets released?

# cd into the local repo
cd "$(brew --repo sjbonner/tap)"

# find out the latest commit locally
git log -s -1
# compare the commit with your remote repo

# if the repo is outdated, run
brew update

⭐️Bonus: What if I host my project on GitHub then what would be the solution to the same problem?

https://twitter.com/developerguyba/status/1570493682780090368?s=20&t=AsQLxgnSvA49RJwBku1b8g

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
developer-guy

🇹🇷KCD Turkey Organizer🎖Best Sigstore Evangelist🐦SSCS Twitter Community Admin✍️@chainguard_dev Fan📦Container Addict📅Organizer at @cloudnativetr•@devopstr