Skip to content

Commit b5d36d5

Browse files
committed
Build docker images with buildx
1 parent 9bdb824 commit b5d36d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

framework/.changeset/v0.15.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- Set CL node image also as `CTF_CHAINLINK_IMAGE` env var in compat command
2+
- Build docker images with buildx

framework/docker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func BuildImage(dctx, dfile, nameAndTag string, buildArgs map[string]string) err
420420
dfilePath := filepath.Join(dctx, dfile)
421421

422422
if os.Getenv("CTF_CLNODE_DLV") == "true" {
423-
commandParts := []string{"docker", "build", "--build-arg", `GO_GCFLAGS=all=-N -l`, "--build-arg", "CHAINLINK_USER=chainlink"}
423+
commandParts := []string{"docker", "buildx", "build", "--build-arg", `GO_GCFLAGS=all=-N -l`, "--build-arg", "CHAINLINK_USER=chainlink"}
424424
for k, v := range buildArgs {
425425
commandParts = append(commandParts, "--build-arg", fmt.Sprintf("%s=%s", k, v))
426426
}
@@ -430,7 +430,7 @@ func BuildImage(dctx, dfile, nameAndTag string, buildArgs map[string]string) err
430430
commandParts = append(commandParts, "-t", nameAndTag, "-f", dfilePath, dctx)
431431
return RunCommand(commandParts[0], commandParts[1:]...)
432432
}
433-
commandParts := []string{"docker", "build", "--build-arg", "CHAINLINK_USER=chainlink"}
433+
commandParts := []string{"docker", "buildx", "build", "--build-arg", "CHAINLINK_USER=chainlink"}
434434
for k, v := range buildArgs {
435435
commandParts = append(commandParts, "--build-arg", fmt.Sprintf("%s=%s", k, v))
436436
}

0 commit comments

Comments
 (0)