feat: add recipe version pinning #120

Merged
decentral1se merged 1 commits from knoflook/abra:version-pinning into main 2021-11-03 05:28:24 +00:00
Owner

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.

closes: https://git.coopcloud.tech/coop-cloud/organising/issues/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.
knoflook added 1 commit 2021-11-01 10:35:51 +00:00
feat: add recipe version pinning
Some checks failed
continuous-integration/drone/pr Build is failing
48474d70ff
closes: coop-cloud/organising#186
Author
Owner

ah, to pin an app, go to ~/.abra/apps/app and create a text file named versions with the following syntax

pin service image:tag
every service in its own line, i.e.

pin app nextcloud:22.1-fpm
pin db mariadb:10.5
pin cron nextcloud:22.1.0-fpm

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.

ah, to pin an app, go to ~/.abra/apps/app and create a text file named `versions` with the following syntax `pin service image:tag` every service in its own line, i.e. ``` pin app nextcloud:22.1-fpm pin db mariadb:10.5 pin cron nextcloud:22.1.0-fpm ``` 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.
Author
Owner

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

another important thing, this requires https://git.coopcloud.tech/coop-cloud/tagcmp/pulls/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`
decentral1se approved these changes 2021-11-03 05:28:17 +00:00
decentral1se left a comment
Owner

Tested and works for me also! Wonderful stuff!

Tested and works for me also! Wonderful stuff!
decentral1se merged commit f02ea7ca0d into main 2021-11-03 05:28:24 +00:00
Sign in to join this conversation.
No description provided.