complete zip release and install with hash

This commit is contained in:
Ben Hirschberg
2021-10-04 08:36:53 +03:00
parent f903e13d7b
commit 86b6a1d88a
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
mkdir -p build/${{ matrix.os }}
go mod tidy && go build -ldflags "-w -s -X github.com/armosec/kubescape/cmd.BuildNumber=$RELEASE -X github.com/armosec/kubescape/cautils/getter.ArmoBEURL=$ArmoBEServer -X github.com/armosec/kubescape/cautils/getter.ArmoERURL=$ArmoERServer -X github.com/armosec/kubescape/cautils/getter.ArmoFEURL=$ArmoWebsite" -o build/${{ matrix.os }}/kubescape
python -m sha1 build/${{ matrix.os }}/kubescape > build/${{ matrix.os }}/kubescape.sha1
zip build/${{ matrix.os }}/kubescape.zip build/${{ matrix.os }}/kubescape build/${{ matrix.os }}/kubescape.sha1
python -m zipfile -c build/${{ matrix.os }}/kubescape.zip build/${{ matrix.os }}/kubescape build/${{ matrix.os }}/kubescape.sha1
- name: Upload Release binaries
id: upload-release-asset
+4 -1
View File
@@ -6,6 +6,7 @@ echo
BASE_DIR=~/.kubescape
KUBESCAPE_EXEC=kubescape
KUBESCAPE_ZIP=kubescape.zip
osName=$(uname -s)
if [[ $osName == *"MINGW"* ]]; then
@@ -25,8 +26,10 @@ DOWNLOAD_URL=${DOWNLOAD_URL/browser_download_url: /}
mkdir -p $BASE_DIR
OUTPUT=$BASE_DIR/$KUBESCAPE_EXEC
OUTPUT_ZIP=$BASE_DIR/$KUBESCAPE_ZIP
curl --progress-bar -L $DOWNLOAD_URL -o $OUTPUT
curl --progress-bar -L $DOWNLOAD_URL -o $OUTPUT_ZIP
unzip $OUTPUT_ZIP $KUBESCAPE_EXEC -d $BASE_DIR
# Checking if SUDO needed/exists
SUDO=