Use apps.json to power upgrade / rollback, add helper commands #135
No reviewers
Labels
No Label
breaking-change
bug
CI/CD
design
documentation
duplicate
enhancement
help wanted
invalid
plugin
question
secrets
shell-completion
versioning
wontfix
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#135
Loading…
Reference in New Issue
No description provided.
Delete Branch "apps-json"
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 #130, #131 and #134
abra-apps.json
as~/.abra/apps.json
, update it as needed (i.e. when remote modified time is more recent than the local mtime)abra recipe ls
to list all recipes available inapps.json
abra recipe <recipe> versions
to show all a recipe's versionsabra recipe <recipe> release
, replacingbin/app-version.sh
, to sync git tags and Docker deploy labels with image versions, using metadata from Skopeo -- this also handles bumping recipe versions according to the logic in coop-cloud/organising#51require_yq
into a genericvendor_binary
function, and use it for bothjq
andyq
abra app <app> deploy
command to accept an optional<version>
argument, and makeabra app <app> rollback
work the same asabra app <app> deploy <last-version>
(i.e. no longer usingdocker service rollback
, which seems like it'll rarely be what people want)require_app_latest
withrequire_app_version
, which accepts a recipe name and a version (tag), and only pull from git if we're trying to use a tag that's not available locally.checkout_main_or_master
to make a generic version of the diabolical logic we're using to handle different primary branch names.This PR also continues a gradual wafting towards lowercase names for local variables (keeping e.g.
ABRA_DIR
capitalised, but making e.g.$version
lowercase).7279b54f51
toa26a0d27d7