diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 9ef0052342ff..88680c2b26f1 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -23,7 +23,10 @@ env: jobs: docker-build: name: Build Docker image (ghcr.io/astral-sh/uv) for ${{ matrix.platform }} - runs-on: ubuntu-latest + runs-on: depot-ubuntu-latest + permissions: + contents: read + id-token: write # for Depot OIDC environment: name: release strategy: @@ -37,7 +40,7 @@ jobs: with: submodules: recursive - - uses: docker/setup-buildx-action@v3 + - uses: depot/setup-action@v1 - uses: docker/login-action@v3 with: @@ -76,8 +79,10 @@ jobs: # Adapted from https://docs.docker.com/build/ci/github-actions/multi-platform/ - name: Build and push by digest id: build - uses: docker/build-push-action@v6 + uses: depot/build-push-action@v1 with: + project: 7hd4vdzmw5 + token: ${{ secrets.DEPOT_TOKEN }} context: . platforms: ${{ matrix.platform }} cache-from: type=gha,scope=uv-${{ env.PLATFORM_TUPLE }}