Skip to content

Commit

Permalink
Remove unneeded invoke command
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jun 30, 2024
1 parent fdde8a6 commit 7746650
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions adit_radis_shared/invoke_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,6 @@ def compose_down(
cmd += " --remove-orphans --volumes"
ctx.run(cmd, pty=True)

def stack_deploy2(self, ctx: Context, env: Environments = "prod", build: bool = False):
if build:
cmd = f"{self._build_compose_cmd(env)} build"
ctx.run(cmd, pty=True)

cmd = (
f"docker stack deploy -c {self._get_compose_env_file(env)} {self._get_stack_name(env)}"
)
ctx.run(cmd, pty=True)

def stack_deploy(self, ctx: Context, env: Environments = "prod", build: bool = False):
"""Deploy the stack to Docker Swarm (prod by default!). Optional build it before."""
if build:
Expand Down

0 comments on commit 7746650

Please sign in to comment.