1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00

NK-22: Fixed compile-image.sh

This commit is contained in:
belyshevdenis 2019-03-01 17:40:47 +02:00
parent d0de77f9ce
commit c3b903a94b

View file

@ -4,9 +4,11 @@ project_name="kube-policy"
version="latest"
echo "# Ensuring Go dependencies..."
#dep ensure || exit 2
dep ensure || exit 2
echo "# Building executable ${project_name}..."
chmod +x scripts/update-codegen.sh
scripts/update-codegen.sh
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ${project_name} . || exit 3
echo "# Building docker image ${hub_user_name}/${project_name}:${version}"