Skip to content

Conversation

LucilleH
Copy link
Collaborator

Summary

Allow setting name and tag in devbox build

Example:

devbox build --name devbox-test --tags latest

How was it tested?

devbox build

devbox.go Outdated
@@ -81,12 +81,12 @@ func (d *Devbox) Remove(pkgs ...string) error {
}

// Build creates a Docker image containing a shell with the devbox environment.
func (d *Devbox) Build(opts ...docker.BuildOptions) error {
func (d *Devbox) Build(name string, opts ...docker.BuildOptions) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding name as an argument, can we just pass it as part of opts?

@LucilleH LucilleH requested a review from loreto September 19, 2022 18:01
Copy link
Contributor

@loreto loreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LucilleH LucilleH merged commit 0665671 into main Sep 19, 2022
@LucilleH LucilleH deleted the lucille--build-tag branch September 19, 2022 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants