Skip to content

Commit

Permalink
test diff dump
Browse files Browse the repository at this point in the history
  • Loading branch information
daynewlee committed Feb 8, 2024
1 parent 35ac5f0 commit 9059ec2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/ci/jobs/diff-dumps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ create_offline_dump() {

cd /tmp/offline-dump
zip scanner-vuln-updates.zip scanner-defs.zip k8s-istio.zip

du -skh scanner-vuln-updates.zip
cmd=()
if is_in_PR_context; then
Expand All @@ -93,7 +92,7 @@ upload_offline_dump() {
if is_in_PR_context; then
cmd+=(echo "Would do")
fi
curl --silent --show-error --create-dirs -o out/RELEASE_VERSION.txt https://raw.githubusercontent.com/stackrox/stackrox/master/scanner/updater/version/RELEASE_VERSION
curl --silent --show-error --max-time 60 --retry 3 --create-dirs -o out/RELEASE_VERSION.txt https://raw.githubusercontent.com/stackrox/stackrox/master/scanner/updater/version/RELEASE_VERSION
version_file="out/RELEASE_VERSION.txt"
# Use grep to extract X.Y versions, sort them, and get the last one as the latest
latest_version=$(grep -oE '^[0-9]+\.[0-9]+' "$version_file" | sort -V | tail -n 1)
Expand Down

0 comments on commit 9059ec2

Please sign in to comment.