Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ctf/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def deploy(
bool,
typer.Option("--force", help="Force the deployment even if there are errors."),
] = False,
skip_build: Annotated[
bool,
typer.Option("--skip-build", help="Skip build container. (Use this only if you already have the necessary locally for the deploy.yaml to work!)")
] = False,
):
ENV["INCUS_REMOTE"] = remote
# Run generate first.
Expand Down Expand Up @@ -118,7 +122,7 @@ def deploy(
t.name,
), # Running ansible on containers first then virtual machines
):
if track.require_build_container:
if not skip_build and track.require_build_container:
run_ansible_playbook(
remote=remote,
production=production,
Expand Down
14 changes: 13 additions & 1 deletion ctf/redeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,21 @@ def redeploy(
help="If there are artefacts remaining, delete them without asking.",
),
] = False,
skip_build: Annotated[
bool,
typer.Option(
"--skip-build",
help="Skip build container. (Use this only if you already have the necessary locally for the deploy.yaml to work!)",
),
] = False,
) -> None:
ENV["INCUS_REMOTE"] = remote
destroy(tracks=tracks, production=production, remote=remote, force=force)
deploy(
tracks=tracks, production=production, remote=remote, force=force, redeploy=True
tracks=tracks,
production=production,
remote=remote,
redeploy=True,
force=force,
skip_build=skip_build,
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"typer==0.16.0",
"pydantic"
]
version = "4.3.5"
version = "4.3.6"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand Down
Loading