-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.25 KB
/
ci.yml
File metadata and controls
50 lines (47 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches:
- main
pull_request:
env:
UV_VERSION: 0.8.14
GHCR_IMAGE_REPOSITORY: ghcr.io/${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm64/v8
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
variant:
- bookworm
- trixie
steps:
- uses: actions/checkout@v5.0.0
- uses: docker/login-action@v3.5.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3.6.0
with:
platforms: ${{ env.PLATFORMS }}
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/build-push-action@v6.18.0
with:
context: .
push: true
tags: ${{ env.GHCR_IMAGE_REPOSITORY }}:${{ github.sha }}-${{ matrix.python }}-${{ matrix.variant }}
platforms: ${{ env.PLATFORMS }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
UV_VERSION=${{ env.UV_VERSION }}
PYTHON_VERSION=${{ matrix.python }}
VARIANT=${{ matrix.variant }}