Skip to content

Commit

Permalink
Minor typo for docker target
Browse files Browse the repository at this point in the history
  • Loading branch information
spillai committed Oct 23, 2023
1 parent 7a844f7 commit ec3ee94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agipack/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,20 @@ 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]")
print(tree)

# 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(
Expand Down

0 comments on commit ec3ee94

Please sign in to comment.