Skip to content

Commit

Permalink
Merge pull request #11 from lema-ai/amitaifrey/rd-617-improve-building2
Browse files Browse the repository at this point in the history
Remove --context from default
  • Loading branch information
amitaifrey authored Apr 30, 2024
2 parents 55fe646 + 8a5e5fa commit d3d119b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func authDockerEcr(accountId, region string) error {
}

func buildDockerImage(repoURL, repoName, dockerfilePath, target, cacheToTarget string, cacheFromTargets, tags []string, remoteBuild bool) error {
buildArgs := []string{"--context", "ec2-builder", "buildx", "build", "--output", "type=registry", "--platform=linux/amd64", "--progress=plain", "--push", "--build-arg", "BUILDKIT_INLINE_CACHE=1",
buildArgs := []string{"buildx", "build", "--output", "type=registry", "--platform=linux/amd64", "--progress=plain", "--push", "--build-arg", "BUILDKIT_INLINE_CACHE=1",
"--cache-to", fmt.Sprintf("mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=%s/cache/%s:cache", repoURL, cacheToTarget)}
for _, cacheFromTarget := range cacheFromTargets {
buildArgs = append(buildArgs, "--cache-from", fmt.Sprintf("mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=%s/cache/%s:cache", repoURL, cacheFromTarget))
Expand Down

0 comments on commit d3d119b

Please sign in to comment.