mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
* Add `cli.deploy.test` module to orchestrate compose-based CI deploy tests * Support server per-app runs (including run_after dependencies) and workstation selection * Add optional image build flags (--no-cache, --missing) and stack retention on failure * Simplify `scripts/tests/deploy.sh` to a thin wrapper that forwards args to the Python runner https://chatgpt.com/share/695f9e22-6e9c-800f-9a50-65f553619af2
23 lines
644 B
Python
23 lines
644 B
Python
from __future__ import annotations
|
|
|
|
from typing import Iterable
|
|
|
|
|
|
def filter_allowed_workstation(app_ids: Iterable[str]) -> list[str]:
|
|
# keep your existing workstation selection:
|
|
# desk-* and util-desk-*
|
|
out: list[str] = []
|
|
for a in app_ids:
|
|
if a.startswith("desk-") or a.startswith("util-desk-"):
|
|
out.append(a)
|
|
return out
|
|
|
|
|
|
def filter_allowed_server(app_ids: Iterable[str]) -> list[str]:
|
|
# server deploy test for invokable web-app-* and web-svc-*
|
|
out: list[str] = []
|
|
for a in app_ids:
|
|
if a.startswith("web-app-") or a.startswith("web-svc-"):
|
|
out.append(a)
|
|
return out
|