fix(ci): setup Docker to help running uv-pip-compile.sh in containerized env

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
hainenber
2026-06-20 16:40:56 +07:00
parent 2a938b49ec
commit d64d3402fc

View File

@@ -32,17 +32,20 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: true
- name: Setup Python
# Authenticate the Docker daemon so the python:slim pull in
# uv-pip-compile.sh uses our (much higher) authenticated rate limit
# instead of the shared-runner anonymous one. Best-effort: on fork PRs the
# secrets are unavailable, so this no-ops and the pull falls back to
# anonymous (covered by the retry loop in the script).
- name: Login to Docker Hub
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
continue-on-error: true
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
python-version-file: 'pyproject.toml'
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install uv
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }}
run: pip install uv
- name: Sync requirements
- name: Sync requirements in containerized environment
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'pip' }}
run: ./scripts/uv-pip-compile.sh