Skip to content

Commit

Permalink
fix: use sgdocker where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
odsod committed Jul 19, 2022
1 parent 5aceb49 commit cf89841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/sgcloudendpoints/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"path/filepath"

"go.einride.tech/sage/sg"
"go.einride.tech/sage/tools/sgdocker"
"go.einride.tech/sage/tools/sggcloud"
)

Expand Down Expand Up @@ -93,7 +94,7 @@ func DockerImage(ctx context.Context, serviceName, gcpProject, gcpRegion string)
if err := os.WriteFile(filepath.Join(dir, "Dockerfile"), dockerfile, 0o600); err != nil {
panic(err)
}
cmd := sg.Command(ctx, "docker", "build", "-t", tag, ".")
cmd := sgdocker.Command(ctx, "build", "-t", tag, ".")
cmd.Dir = dir
if err := cmd.Run(); err != nil {
panic(err)
Expand Down

0 comments on commit cf89841

Please sign in to comment.