Files
ZitPlane/.gitea/workflows/p05-backend-acceptance.yml
T

41 lines
1.2 KiB
YAML

name: ZitPlane P05-CI-03 Backend Acceptance
# Isolated backend-only manual verification. Never grant Docker socket
# access to untrusted PRs or run this against production services.
on:
workflow_dispatch:
permissions:
contents: read
jobs:
backend:
name: Disposable Backend Portless, Persistence and OIDC
runs-on: ubuntu-latest
container: node:22-alpine
timeout-minutes: 35
steps:
- name: Install Git before Gitea checkout
run: apk add --no-cache git
- uses: actions/checkout@v4
with:
github-server-url: https://dev.ivib.cc
- name: Backend-only isolated acceptance
run: |
set -eu
apk add --no-cache python3 docker-cli docker-cli-compose
sh tests/ci/backend_acceptance.sh
- name: Always cleanup CI-owned Docker data and prove no leftovers
if: always()
run: |
set -eu
if [ -f tests/ci/backend_cleanup.sh ]; then
if [ -f .p05-ci-owned ]; then
apk add --no-cache docker-cli docker-cli-compose
fi
sh tests/ci/backend_cleanup.sh
else
echo '::error::Checkout or cleanup script unavailable; no Docker state is claimed clean'
exit 1
fi