Fixed compile-image.sh
@@ -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}"
