Skip to content

Commit

Permalink
Fix the new wait for Pypi script (#1161)
Browse files Browse the repository at this point in the history
Related to d6b5d4b

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Dec 19, 2024
1 parent e237b9e commit 3001a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
local attempt_num=1
while true; do
AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$")
AVAILABLE_VERSION=$(curl -s https://pypi.org/pypi/osism/json | jq -r ".releases | keys[]" | grep "^${version}$" || exit 0)
if [[ "$AVAILABLE_VERSION" == "$version" ]]; then
break
else
Expand All @@ -55,7 +55,7 @@
}
if [[ $version != "latest" ]]; then
wait_for_pypi_version 20 $version
wait_for_pypi_version 20 "${version:1}"
fi
docker buildx build \
Expand Down

0 comments on commit 3001a21

Please sign in to comment.