Export required env vars for Go toolchain.
All checks were successful
Build container / BuildImage (push) Successful in 3m7s
All checks were successful
Build container / BuildImage (push) Successful in 3m7s
This commit is contained in:
parent
eeb176d1e9
commit
fba4800284
@ -6,6 +6,11 @@ CMD=$*
|
|||||||
# Just ensure we have PATH defined properly.
|
# Just ensure we have PATH defined properly.
|
||||||
PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/"
|
PATH="${PATH}:/usr/bin/:/usr/sbin/:/bin/:/usr/local/bin/:/opt/bin/"
|
||||||
|
|
||||||
|
# Also make sure that Go's environment variables are set.
|
||||||
|
export GOCACHE=/home/container/go/build
|
||||||
|
export GOMODCACHE=/home/container/go/pkg/mod
|
||||||
|
export GOPATH=/home/container/go
|
||||||
|
|
||||||
if [ "${CMD}" == "" ]; then
|
if [ "${CMD}" == "" ]; then
|
||||||
CMD="${INPUT_COMMAND}"
|
CMD="${INPUT_COMMAND}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user