Files
s5p/.gitea/workflows/ci.yaml
user 251d99795b
Some checks failed
ci / secrets (push) Successful in 6s
ci / test (push) Successful in 21s
ci / build (push) Failing after 24s
fix: use vfs storage driver for podman-in-container builds
Runner ignores --privileged, so overlay mounts fail inside the
container. Switch to vfs storage driver via containers config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 07:11:42 +01:00

50 lines
1.6 KiB
YAML

name: ci
on:
push:
branches: [main]
jobs:
test:
runs-on: linux
container: python:3.13-alpine
steps:
- run: apk add --no-cache git
- run: |
git clone --depth 1 \
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
"${{ github.server_url }}/${{ github.repository }}.git" .
- run: pip install --no-cache-dir -r requirements.txt ruff pytest
- run: ruff check src/ tests/
- run: PYTHONPATH=src pytest tests/ -v
secrets:
runs-on: linux
container: ghcr.io/gitleaks/gitleaks:latest
steps:
- run: |
git clone \
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
"${{ github.server_url }}/${{ github.repository }}.git" .
- run: gitleaks detect --source . -v
build:
needs: [test, secrets]
runs-on: linux
container: quay.io/podman/stable
steps:
- run: |
dnf install -y git
mkdir -p ~/.config/containers
printf '[storage]\ndriver = "vfs"\n' > ~/.config/containers/storage.conf
- run: |
git clone --depth 1 \
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
"${{ github.server_url }}/${{ github.repository }}.git" .
- run: echo "$HARBOR_PASS" | podman login -u "$HARBOR_USER" --password-stdin harbor.mymx.me
env:
HARBOR_USER: ${{ secrets.HARBOR_USER }}
HARBOR_PASS: ${{ secrets.HARBOR_PASS }}
- run: podman build -t harbor.mymx.me/s5p/s5p:latest -f Containerfile .
- run: podman push harbor.mymx.me/s5p/s5p:latest