Skip to content

Commit

Permalink
Make Docker build wait for PyPI Package to become available
Browse files Browse the repository at this point in the history
Without this change, the Docker image build may start (and fail) before
the package is actually installable with `pip`.
  • Loading branch information
easybe committed Sep 12, 2024
1 parent f7a0ce7 commit 0f12c21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
fi
echo "GOOSEBIT_VERSION=${tag#v}" >> $GITHUB_ENV
- name: Wait for PyPI package to become available
run: |
while [ "$(curl -Ss https://pypi.org/pypi/goosebit/json |
jq ".releases | has(\"$GOOSEBIT_VERSION\")")" != "true" ]
do
sleep 1
done
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
Expand Down

0 comments on commit 0f12c21

Please sign in to comment.