feat: add recipe version pinning #120
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
versionswith the following syntaxpin service image:tagevery 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/tagcmppull this change, then add this line to go.mod, right after
go 1.16replace coopcloud.tech/tagcmp => /path/to/your/local/tagcmpTested and works for me also! Wonderful stuff!