Skip to content

Commit

Permalink
Update relprep.sh to use matching keda-tools tag instead of latest
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Smith <[email protected]>
  • Loading branch information
joelsmith committed Jul 31, 2024
1 parent 46329e6 commit fbbf725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/relprep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ echo
echo 'Running go mod tidy (pass 1)'
go mod tidy

echo "Getting latest tag for keda-tools for version $gover"
bttag=$(skopeo list-tags docker://ghcr.io/kedacore/keda-tools | jq -r '.Tags|.[]' | sort --version-sort -r | head -1)
echo "Getting tag for keda-tools used to build KEDA version $ver"
bttag=$(curl -s "https://raw.githubusercontent.com/kedacore/keda/v${ver}/Dockerfile" | sed -n 's#^FROM.* ghcr.io/kedacore/keda-tools:\([0-9][0-9.]*\) AS builder$#\1#p;T;q')

echo "Updating keda-tools tag to $bttag"
while read f; do
Expand Down

0 comments on commit fbbf725

Please sign in to comment.