Skip to content

Commit

Permalink
Skip creating new image if env is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-neara committed Aug 20, 2024
1 parent 9894abb commit d990d0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/drivers/docker_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (d *DockerDriver) Destroy() {
}

func (d *DockerDriver) SetEnv(envVars []unversioned.EnvVar) error {
if len(envVars) == 0 {
return nil
}
env := d.processEnvVars(envVars)
container, err := d.cli.CreateContainer(docker.CreateContainerOptions{
Platform: d.platform,
Expand Down

0 comments on commit d990d0e

Please sign in to comment.