feat: add recipe version pinning #120
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "knoflook/abra:version-pinning"
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?
closes: coop-cloud/organising#186
please test before merging, this worked ok on my machine but the code is a bit of a spaghetti and i might have missed some edge cases.
ah, to pin an app, go to ~/.abra/apps/app and create a text file named
versions
with the following syntaxpin service image:tag
every service in its own line, i.e.
if you use 22.1-fpm it's gonna use the latest patch (22.1.1-fpm when i'm writing this), if you use 22.1.0-fpm it will stick to 22.1.0-fpm.
another important thing, this requires coop-cloud/tagcmp#12 to be merged. to use it on your local machine before this gets merged, clone my tagcmp:
git clone https://git.coopcloud.tech/knoflook/tagcmp
pull this change, then add this line to go.mod, right after
go 1.16
replace coopcloud.tech/tagcmp => /path/to/your/local/tagcmp
Tested and works for me also! Wonderful stuff!