All checks were successful
deploy / deploy (push) Successful in 31s
Proof: Automatic rollout now reconciles a repo-owned deployment list that explicitly includes operator-dashboard, instead of depending on mutable Forgejo variables or deployment metadata labels. Assumptions: Repo-owned application deployments are the set enumerated in scripts/deploy/repo_deployments.py and each deployment still uses container name app for image updates. Still fake: Forgejo still shows older workflow behavior on prior runs, so this commit must be validated by one more push-driven deployment cycle.
39 lines
849 B
Python
39 lines
849 B
Python
#!/usr/bin/env python3
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
|
|
|
|
REPO_DEPLOYMENTS = [
|
|
"near-intents-ingest",
|
|
"market-reference-ingest",
|
|
"liquidity-manager",
|
|
"inventory-sync",
|
|
"history-writer",
|
|
"ops-sentinel",
|
|
"strategy-engine",
|
|
"trade-executor",
|
|
"operator-dashboard",
|
|
]
|
|
|
|
|
|
def main() -> int:
|
|
parser = argparse.ArgumentParser(description="Print repo-owned application deployments.")
|
|
parser.add_argument(
|
|
"--format",
|
|
choices=("lines", "csv"),
|
|
default="lines",
|
|
help="Output format for deployment names.",
|
|
)
|
|
args = parser.parse_args()
|
|
|
|
if args.format == "csv":
|
|
print(",".join(REPO_DEPLOYMENTS))
|
|
else:
|
|
for deployment in REPO_DEPLOYMENTS:
|
|
print(deployment)
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|