docs: Gitea pipeline operating notes; ci-image build publishes to registry
Some checks failed
CI / Deploy / PHP Lint (8.1) (push) Has been cancelled
CI / Deploy / PHP Lint (8.2) (push) Has been cancelled
CI / Deploy / PHP Lint (8.3) (push) Has been cancelled
CI / Deploy / PHPCS (WordPress standards) (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
This commit is contained in:
peptiderepo-ops
2026-10-24 10:16:09 +00:00
parent b31d01997a
commit bdfa23218a
2 changed files with 75 additions and 3 deletions

View File

@@ -1,6 +1,10 @@
#!/bin/sh
# Build peptide-ci-php into the gitea-dind daemon the shared runner uses.
# Rebuild the CI image (PHP 8.1/8.2/8.3 + Composer) and publish it to the Gitea
# registry. Run on the KVM8 as root. Pulls are anonymous (public org), but the
# push needs `docker exec -i gitea-dind docker login git.protopeer.com` first with
# a Gitea token that has write:package. Bump TAG and CI_IMAGE in
# tools/gitea-pipeline/render.py together, then re-render the pipelines.
set -e
TAG=peptide-ci-php:2026-10
TAG=git.protopeer.com/peptide-repo/ci-php:2026-10
docker exec -i gitea-dind docker build -t "$TAG" - < "$(dirname "$0")/Dockerfile"
docker exec gitea-dind docker image inspect "$TAG" --format '{{.Id}} {{.Size}}'
docker exec gitea-dind docker push "$TAG"