Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor typo for docker target #12

Merged
merged 1 commit into from
Oct 23, 2023
Merged
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: 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
Loading