Skip to content

Commit

Permalink
use go env vars in populate
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Sep 11, 2024
1 parent 87ec649 commit 1ddf7aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function populate() {
"kotsadm")
docker run --rm \
-v "$(pwd):/replicatedhq/kots" \
-v "$(pwd)/dev/.gomodcache:/go/pkg/mod" \
-v "$(pwd)/dev/.gocache:/root/.cache/go-build" \
-e GOCACHE=/replicatedhq/kots/dev/.gocache \
-e GOMODCACHE=/replicatedhq/kots/dev/.gomodcache \
-w /replicatedhq/kots \
golang:1.22-alpine \
/bin/sh -c "apk add make bash git && make kots build"
Expand All @@ -40,8 +40,8 @@ function populate() {
"kurl-proxy")
docker run --rm \
-v "$(pwd):/replicatedhq/kots" \
-v "$(pwd)/dev/.gomodcache:/go/pkg/mod" \
-v "$(pwd)/dev/.gocache:/root/.cache/go-build" \
-e GOCACHE=/replicatedhq/kots/dev/.gocache \
-e GOMODCACHE=/replicatedhq/kots/dev/.gomodcache \
-w /replicatedhq/kots/kurl_proxy \
golang:1.22-alpine \
/bin/sh -c "apk add make bash git && make build"
Expand Down

0 comments on commit 1ddf7aa

Please sign in to comment.