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:
parent
d0de77f9ce
commit
c3b903a94b
1 changed files with 3 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue