ci: helper: Add an action to run the container workload via lcitool

Just like with the other CLI sub-commands, add an action to run a
GitLab spec job in a local container via lcitool.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Erik Skultety 2023-08-24 15:21:44 +02:00
parent 04b9118fe5
commit e4dc7deaaa

View File

@ -295,6 +295,10 @@ class Application:
def _action_shell(self): def _action_shell(self):
self._make_run(f"ci-shell@{self._args.target}") self._make_run(f"ci-shell@{self._args.target}")
@required_deps("git")
def _action_run(self):
return self._lcitool_run(self._args.job)
def _action_list_images(self): def _action_list_images(self):
registry_uri = util.get_registry_uri(self._args.namespace, registry_uri = util.get_registry_uri(self._args.namespace,
self._args.gitlab_uri) self._args.gitlab_uri)