mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
ci(deploy): prevent docker compose builds in GitHub Actions
Switch CI detection to GITHUB_ACTIONS and disable compose builds via INFINITO_NO_BUILD=1. The deploy workflows now rely on pulling the prebuilt CI image instead of triggering local Docker builds. - Remove legacy UP_BUILD handling - Enable --no-build in compose when running in real CI - Keep local/act builds working as before https://chatgpt.com/share/69666e0b-f08c-800f-93fd-611eced4b100
This commit is contained in:
5 files changed
+18
-23
No files matched your search
@@ -66,15 +66,20 @@ class Compose:
|
||||
|
||||
def up(self, *, run_init: bool = True) -> None:
|
||||
print(">>> Starting compose stack (coredns + infinito)")
|
||||
self.run(["up", "-d", "coredns", "infinito"], check=True)
|
||||
|
||||
no_build = os.environ.get("INFINITO_NO_BUILD", "0") == "1"
|
||||
args = ["up", "-d"]
|
||||
if no_build:
|
||||
args.append("--no-build")
|
||||
args += ["coredns", "infinito"]
|
||||
|
||||
self.run(args, check=True)
|
||||
|
||||
print(">>> Waiting for systemd to be ready")
|
||||
self.wait_for_systemd_ready()
|
||||
|
||||
if run_init:
|
||||
print(">>> Running infinito entry.sh init")
|
||||
# Reuse the same init entrypoint logic as the image does.
|
||||
# Use sh -lc so PATH/env/profile are consistent and we can pass args.
|
||||
self.exec(
|
||||
["sh", "-lc", "/opt/src/infinito/scripts/docker/entry.sh true"],
|
||||
workdir="/opt/src/infinito",
|
||||
|
||||
Reference in new issue
Block a user