feat: force a deploy to latest
release / --ignore-env-version
#617
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
I would like to use
abra app deploy <domain> latest
to directly deploy to the latest release. This would make it much simpler to deploy ifBoth of these cases are relevant to me for writing scripts to help with recipe upgrade testing, but also when doing it manually.
@iexos
abra app deploy <domain> --ignore-env-version/-i
will deploy the latest by default, ignoring the.env
version. If it's already deployed, you can--force/-f
? I am not sure about the interaction with--chaos/-C
off the top of my head, but if you test the combinations manually, I'd be curious to see what you run into! Theabra app deploy
code path makes sure to pull the latest from the recipe repository, so it should be up-to-date.abra recipe versions <recipe> -m
will give you insight into the catalogue versions.Some of these things can also be arranged with standard tools, e.g. if you want to investigate the catalogue.
That'll get you the latest published gitea version.
Ah thank you,
--ignore-env-version
does exactly what I want for undeployed apps! Is there another use for this apart from deploying the latest version? Maybe something in the docs/help could make it more obvious.For a chaos deployed app this happens:
I guess it ignores the .env version, but it can still get the version from deployment?
Actually, I'm not sure. I think maybe not? If you pass
<version>
toabra app deploy
, i think-i
is implicit?I guess forabra app upgrade
, you have a different behaviour but I don't think that is even tested 🙈This flag was added a bit "on the end" of the large env version refactor... i'm glad you're asking this question!
If you have some more spoons for manual testing, maybe you can see what it does for different scenarios? Maybe the name of the flag could be better. Maybe docs could be better. I'm not sure.update: It's only used for
abra app deploy
!Ah yes, that does seem like a bug. Let's put this on the stack to fix.
Ah, I've dug into this a bit. Gonna DM you to figure out the rest and report back with a plan.update: We're gonna try rename it to
--latest
🫡deploy to `latest` releaseto feat: force a deploy to `latest` release / `--ignore-env-version`