Skip to content

Commit

Permalink
feat: upgrade ko, utilize KOCACHE
Browse files Browse the repository at this point in the history
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
  • Loading branch information
developer-guy committed Mar 2, 2022
1 parent 29b3f07 commit cd409f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func BuildImages() error {
return err
}
os.Setenv("BOM_LDFLAGS", ldFlag)
os.Setenv("KOCACHE", "/tmp/ko")

if os.Getenv("KO_DOCKER_REPO") == "" {
return errors.New("missing KO_DOCKER_REPO environment variable")
Expand All @@ -149,6 +150,7 @@ func BuildImagesLocal() error {
}

os.Setenv("BOM_LDFLAGS", generateLDFlags())
os.Setenv("KOCACHE", "/tmp/ko")

return sh.RunV("ko", "build", "--bare",
"--local", "--platform=linux/amd64",
Expand Down

0 comments on commit cd409f5

Please sign in to comment.