From 3e84e354a845df9863c67486ec7b2880cc435dd3 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 19 Mar 2023 08:12:37 +0200 Subject: [PATCH] Add "install-service" justfile command It should be noted that this cannot be used for the initial install of services which require a database or have other dependencies. Those would typically need to invoke the playbook with `--tags=install-postgres,install-SERVICE`, etc. The purpose of this shortcut is to easily rebuild and restart a single serice subsequently. For those cases, often times there's no need to reinitialize the database and other components and simply running a single component's tasks is enough. --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index 4b6dfbfb..3b5c4de3 100644 --- a/justfile +++ b/justfile @@ -14,6 +14,10 @@ lint: # Runs the playbook with --tags=install-all,ensure-matrix-users-created,start and optional arguments install-all *extra_args: (run-tags "install-all,ensure-matrix-users-created,start" extra_args) +# Runs installation tasks for a single service +install-service service: + just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }} + # Runs the playbook with --tags=setup-all,ensure-matrix-users-created,start and optional arguments setup-all *extra_args: (run-tags "setup-all,ensure-matrix-users-created,start" extra_args)