Skip to content

Commit

Permalink
fix(ci): use docker project name
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Acar <[email protected]>
  • Loading branch information
fatih-acar committed Oct 31, 2024
1 parent 27f8466 commit 102a898
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

# If no version is indicated, we will take the latest
VERSION = os.getenv("INFRAHUB_VERSION", None)
COMPOSE_COMMAND = f"curl https://infrahub.opsmill.io/{VERSION if VERSION else ''} | docker compose -f -"
DOCKER_PROJECT = os.get("INFRAHUB_BUILD_NAME", "schema-library-ci")
COMPOSE_COMMAND = f"curl https://infrahub.opsmill.io/{VERSION if VERSION else ''} | docker compose -p {DOCKER_PROJECT} -f -"

@task
def start(context: Context) -> None:
Expand Down Expand Up @@ -36,4 +37,4 @@ def restart(context: Context, component: str="")-> None:
context.run(f"{COMPOSE_COMMAND} restart {component}")
return

context.run(f"{COMPOSE_COMMAND} restart")
context.run(f"{COMPOSE_COMMAND} restart")

0 comments on commit 102a898

Please sign in to comment.