From ec3ee94c2ae12500bdaabce3339b94aa185609ff Mon Sep 17 00:00:00 2001 From: Sudeep Pillai Date: Mon, 23 Oct 2023 11:10:15 -0700 Subject: [PATCH] Minor typo for docker target --- agipack/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agipack/cli.py b/agipack/cli.py index bd0703c..a01df50 100644 --- a/agipack/cli.py +++ b/agipack/cli.py @@ -104,7 +104,7 @@ def generate( cmd = f"docker build -f {filename} --target {docker_target} -t {tag_name} ." # Print the command to build the Dockerfile - tree = Tree(f"📦 [bold white]docker_{target}[/bold white]") + tree = Tree(f"📦 [bold white]{docker_target}[/bold white]") tree.add( f"[bold green]✓[/bold green] Successfully generated Dockerfile (target=[bold white]{docker_target}[/bold white], filename=[bold white]{filename}[/bold white])." ).add(f"[green]`{cmd}`[/green]") @@ -112,12 +112,12 @@ def generate( # Lint the generated Dockerfile using hadolint if lint: - print(f"🔍 Linting Dockerfile for target [docker_{target}]") + print(f"🔍 Linting Dockerfile for target [{docker_target}]") builder.lint(filename=filename) # Build the Docker image using subprocess and print all the output as it happens if build: - print(f"🚀 Building Docker image for target [docker_{target}]") + print(f"🚀 Building Docker image for target [{docker_target}]") builder.build(filename=filename, target=docker_target, tags=[tag_name], push=push) tree.add(