mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-10 03:30:40 +00:00
Fix vars
typo
`vars` -> `vargs`
This commit is contained in:
parent
4a36ff8f96
commit
920bcc3175
4
main.go
4
main.go
@ -50,7 +50,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
// Set the Dockerfile name
|
// Set the Dockerfile name
|
||||||
if len(vargs.File) == 0 {
|
if len(vargs.File) == 0 {
|
||||||
vars.File = "Dockerfile"
|
vargs.File = "Dockerfile"
|
||||||
}
|
}
|
||||||
// Set the Context value
|
// Set the Context value
|
||||||
if len(vargs.Context) == 0 {
|
if len(vargs.Context) == 0 {
|
||||||
@ -128,7 +128,7 @@ func main() {
|
|||||||
cmd.Run()
|
cmd.Run()
|
||||||
|
|
||||||
// Build the container
|
// Build the container
|
||||||
cmd = exec.Command("/usr/bin/docker", "build", "--pull=true", "--rm=true", "-f", vars.File, "-t", vargs.Repo, vargs.Context)
|
cmd = exec.Command("/usr/bin/docker", "build", "--pull=true", "--rm=true", "-f", vargs.File, "-t", vargs.Repo, vargs.Context)
|
||||||
cmd.Dir = workspace.Path
|
cmd.Dir = workspace.Path
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user