Don't reset branches when creating new apps #408
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#408
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently when working on test code, abra will automagically switch branches to master which is less than ideal for testing scenarios.
@codegod100 do you mean when you run
deploy
on your testing recipe or? Or you mean, your code is on a test branch and you run--chaos
and it switches to master anyway?app new
just makes the new~/.abra/servers/$server/$app
directory but doesn't related to howabra
deals with Git after. So yeh, more info on the workflow would be great, thanks!This implies that abra binary does in fact affect my git branch
Ah yes, I see. Thanks!
abra
does to some internal "gitops" style stuff to try and help produce stable deployments, e.g. switching to git tags, checking there are no unstaged changes, etc. We don't really use several branches for hacking on recipes ourselves, so never really ran into this.So, I guess
abra app new --chaos
flag is the way forward then!Alternatively, maybe we shouldn't even touch the recipe code when instantiating a new app? At this point, it doesn't make sense since we only create a directory and copy over the latest env sample? It's only later when we deal with deployments that we should attempt to ensure stable gitops 🤔
This would actually be my preference. I only suggested the flag because someone in the matrix said that might be useful to request, but yeah, please leave my git alone 😇
--chaos flag needed for `abra app new`to Don't reset branches when creating new apps