Skip to content

Commit

Permalink
Use Depot for Docker image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 15, 2024
1 parent 14812ff commit 1d8bb71
Showing 1 changed file with 8 additions and 3 deletions.
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

0 comments on commit 1d8bb71

Please sign in to comment.