-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag based Deployments #133
Comments
that would be awesome, and actually is one of my major showstoppers for moving to a Lagoon based flow. We as a team of 4 mostly commit to master and actually only want to build a new artifact if there is activity in either the production or staging branch and not on every commit to a repository. Having tags or hooks that only go off on a push to those branches would be nice. For now my solution would be to add a 'proxy' to the webhooks and filter out the ones we don't need. But in the long term it would be awesome if that was configurable in lagoon or perhaps in the lagoon.yml file. |
@renebakx as a work around we have a specific The production branch is also protected to only allow release managers to push directly to the branch. We also have the ability to rollback to a previous tag by reseting and force pushing to the |
Thank you :) That is one of the things Kelsey Hightower was talking about on a kubecon video I just watched. It felt kinda overkill for a small team, but perhaps it isn't in practice. Just need to figure out a way on how to keep that manageable without me being the single point of failure as end boss of what goes into production or not :) |
@renebakx Assuming you have a
So this gives you the possibility to trigger a deployment completely decoupled from Git Branches, and also you are guaranteed the the promoted environment is 100% the same as the source environment as it uses the same Docker Images :) Would that be an alternative? |
I briefly compared how other providers are doing this. The design I am thinking of so far is a column 'tag' would be added firstOne way is that the production tag is set in the UI. secondThe second way I thought of is to use a regular expression e.g. The tag for production environment would be set to |
up :) Edit: Maybe Acquia's solution can be used for inspiration: https://support.acquia.com/hc/en-us/articles/360047440074-Creating-releases-and-deploying-code-on-Acquia-Cloud |
Any thoughts on where this fits on the roadmap? |
@Schnitzel I notice this ticket is flagged as being in the Lagoon 2.0 milestone, however there are no issues or pull requests on the Lagoon 2.0 project board. Do you think its realistic for this to be in scope for lagoon 2? |
(my bad, it's still marked as Lagoon 2, even though we're well into Lagoon 2 now) - @nicksantamaria this is still something under consideration, but not actively under development - but we'd need to set aside time to very carefully plan it out, and work out what the risks and opportunities are. |
Tag based deployments is something our organisation is very interested in. I cant believe it is not interesting for any release based org.. |
We are also interested in tag-based deployments primarily due to our existing process: Our current workflow involves triggering a pipeline upon tag creation in Git. This pipeline is designed to validate the code, deploy a pre-release environment, run end-to-end tests, create a Git release, and then initiate a deployment. However, we face challenges with the default behavior of deploying the latest changes from the main branch. This can potentially result in deploying "untested" code if changes are pushed to the main branch during pipeline execution. To manage this, our current approach involves canceling the pipeline if new commits are detected since its initiation. However, this can lead to wasted time and resources, as the entire pipeline may run without achieving a deployment (including code validation, e2e tests, etc.). It would be highly beneficial for us to enhance our deployment process by implementing a method to trigger deployments to the main branch using specific tags. This enhancement would ensure that only tested and validated code reaches production, addressing our current challenges effectively. |
+1 we use tags for production releases exclusively |
+1 |
Find a way that we can also deploy based on Tags.
The text was updated successfully, but these errors were encountered: