add a label to signal that a deploy is connected with a recipe #264

Merged
moritz merged 2 commits from moritz/abra:recipe_label into main 2023-01-31 14:36:07 +00:00
Member

Resolves coop-cloud/organising#391 by adding the following label coop-cloud.${STACK_NAME}.recipe=${RECIPE} (according to the version label).
This is required for the auto updater coop-cloud/organising#236 (comment)

Resolves https://git.coopcloud.tech/coop-cloud/organising/issues/391 by adding the following label `coop-cloud.${STACK_NAME}.recipe=${RECIPE}` (according to the version label). This is required for the auto updater https://git.coopcloud.tech/coop-cloud/organising/issues/236#issuecomment-15390
decentral1se approved these changes 2023-01-31 13:03:09 +00:00
decentral1se left a comment
Owner

LGTM! Much appreciated to see these split up into separate PRs, great Git praxis!

LGTM! Much appreciated to see these split up into separate PRs, great Git praxis!
@ -449,1 +449,4 @@
}
// add a label to signal that a deploy is connected with a recipe
func SetRecipeLabel(compose *composetypes.Config, stackName string, recipe string) {
Owner
// SetRecipeLabel ...
``` // SetRecipeLabel ... ```
moritz marked this conversation as resolved
@ -450,0 +452,4 @@
func SetRecipeLabel(compose *composetypes.Config, stackName string, recipe string) {
for _, service := range compose.Services {
if service.Name == "app" {
logrus.Debugf("set recipe label to %s", recipe)
Owner

More app/recipe info comment again.

More app/recipe info comment again.
moritz marked this conversation as resolved
moritz force-pushed recipe_label from 98c937b825 to 23a0b92d88 2023-01-31 14:25:47 +00:00 Compare
moritz added 1 commit 2023-01-31 14:31:44 +00:00
continuous-integration/drone/pr Build is failing Details
5b74a56294
resolve PR: include the service info in the log message
moritz merged commit 50db39424c into main 2023-01-31 14:36:06 +00:00
moritz deleted branch recipe_label 2023-01-31 14:36:21 +00:00
Sign in to join this conversation.
No description provided.