Files
wizarr/.github/workflows/ci.yml
Matthieu B 77463899aa Merge pull request #856 from wizarrrr/dependabot/github_actions/actions/checkout-5
build(deps): bump actions/checkout from 4 to 5
2025-09-16 13:08:53 +02:00

74 lines
1.9 KiB
YAML

name: wizarr-ci # main “code + Docker” pipeline
on:
push:
branches: [ main ]
paths-ignore: # skip pure-translation commits
- 'app/translations/**'
- .github/
workflow_dispatch: {} # manual run
env:
PYTHON_VERSION: '3.13'
NODE_VERSION: '20'
jobs:
docker-dev:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
# ─────── Generate uv.lock for reproducible builds ───────
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Generate uv.lock
run: uv lock
# ─────── Docker bits ───────
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: |
network=host
- name: Build & push multi-arch :dev image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/wizarr:dev
cache-from: |
type=gha,scope=wizarr-uv
type=gha,scope=wizarr-npm
type=gha,scope=wizarr-deps
type=gha,scope=wizarr-builder
type=gha
cache-to: |
type=gha,mode=max,scope=wizarr-uv
type=gha,mode=max,scope=wizarr-npm
type=gha,mode=max,scope=wizarr-deps
type=gha,mode=max,scope=wizarr-builder
type=gha,mode=max