Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Depot for Docker image builds #9156

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
Loading