rip Docker, long live systemd

This commit is contained in:
Joakim Hellsén 2026-02-21 06:05:07 +01:00
commit 7c4bb9acca
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
15 changed files with 184 additions and 201 deletions

View file

@ -1,10 +1,10 @@
name: Test and Build Docker Image
name: Run Pytest
on:
push:
pull_request:
schedule:
- cron: "0 14 * * *" # Run every day at 14:00 CET
- cron: "0 14 * * 0" # Run weekly at 14:00 UTC
workflow_dispatch:
jobs:
@ -16,23 +16,7 @@ jobs:
DJANGO_SECRET_KEY: 1234567890
steps:
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: thelovinator1
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v3
with:
version: "latest"
- run: ruff check --exit-non-zero-on-fix --verbose
- run: ruff format --check --verbose
- run: docker build --check .
- uses: actions/setup-python@v6
with:
python-version: 3.14
@ -40,29 +24,3 @@ jobs:
- uses: astral-sh/setup-uv@v7
- run: uv sync --all-extras --dev
- run: uv run pytest
- run: uv run python manage.py makemigrations --check
env:
TESTING: True
- run: uv run python manage.py migrate
env:
TESTING: True
- run: uv run python manage.py collectstatic --noinput
- id: meta
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
images: |
ghcr.io/thelovinator1/ttvdrops
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}