Last month, I got ArgoCD up and running in my lab and set it up to deploy all my services straight from a GitHub repo. It’s made deploying way easier, but there’s still a bit of manual work whenever I update this website. I actually noticed this hassle in my last lab report:
The only downside now is the need to update the image's versions in my
`deployment.yaml` every time I make some change. This is already getting
annoying, I have to-do something about it soon...
Luckily, a quick GitHub Action can take care of that.
Clone the code, bump the version, push the commit. Then let ArgoCD handle the rest of the deployment.
Note
Regex might be one of the most volatile tools people tend to willfully ignore and never fully learn. That sed command uses capturing groups, which makes updating the version in place much easier.
|
|