Files
peptide-e2e/ci-image/build.sh
peptiderepo-ops bdfa23218a
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
docs: Gitea pipeline operating notes; ci-image build publishes to registry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
2026-10-24 10:16:09 +00:00

11 lines
571 B
Bash
Executable File

#!/bin/sh
# 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=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 push "$TAG"