Trendyol Tech
Published in

Trendyol Tech

https://github.com/goreleaser/goreleaser/blob/939f2b002b29d2c8df6efd2d1f1d0b85c4ac5ee0/www/docs/static/logo.png

The fanciest way of releasing Go binaries with GoReleaser 😎

To install GoReleaser on your own machine please refer to the page.

https://gist.github.com/developer-guy/07f8227edfb026de56f2d2f4ea2c7228

🚨 Please let me tell you something that I faced with recently when I start to learn and implement GoReleaser for the first time in our project. When I start to implement it with my project, I did some research about the projects that are already using GoReleaser, so I copied some examples from there and tried to run it. The mistake that I did in the beginning is that I have used the same binary names for all the builds together with “no_unique_dist_dir: true” option. So, my Darwin build made Linux build obsolete at the end of the day because the names of the binaries are same. So, my recommendation is that please read all the documentations first in the GoReleaser website before diving into the implemention details so quick.

https://gist.github.com/developer-guy/30b524339aff44a6c595047fe8a4c65a
https://gist.github.com/developer-guy/c71e1a82387ecf6f2d99d770a67a8b8d
https://gist.github.com/developer-guy/12bd5d1ad53bc02ea6ebf124c382c25b
https://gist.github.com/developer-guy/1accbae945e7216b2faa930f17980746
https://gist.github.com/developer-guy/d3056b6d29e1137e989deb012fe45dbe

🚨 Don’t make your GitLab variables protected if your branch is not protected because you can’t read your variables if they are protected and run on a non-protected branch.

https://gist.github.com/developer-guy/c73e5f003193ba120438c15ad0a75cd8

--

--

--

Trendyol Tech Team

Recommended from Medium

Living Documentation — Brief History and Evolution of the Concept

Hosting a Web Server in Ubuntu MicroK8s

Fantastic Faults and What to Call Them

“Project life “— First steps (Part 1)

Python Dictionaries

Producing architectural guidelines to help teams make their migration plans

How To Start Web Development On Android

The Dis-engagement of Apple’s Open-Source

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

developer-guy

I do mostly Go, Kubernetes, and cloud-native stuff ⛵️🐰🐳

More from Medium

Manage Kubernetes Admission Webhook's certificates with cert-manager CA Injector and Vault PKI📝…

Creating a Linkerd Controller in Golang

Jaeger Tracing: A Friendly Guide for Beginners

Developing Kubernetes Native App in Golang With Hot Reload Directly Inside the Cluster