Rename the repo to adamf/stpweb
Test and deploy / test (push) Successful in 1m29s
Test and deploy / deploy (push) Successful in 2s

Point CI, Renovate, the CV links, tests and docs at adamf/stpweb and
the deploy folder at ~/deploy/stpweb. Pin the Compose project name to
web_server so the existing volumes and network keep their names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 20:54:30 +00:00
co-authored by Claude Opus 5.5
parent 4530cb8dc4
commit bfe2fe2782
13 changed files with 38 additions and 35 deletions
+10 -10
View File
@@ -16,11 +16,11 @@ jobs:
# Via env so a branch name is never parsed as shell.
SHA: ${{ github.sha }}
REF: ${{ github.ref }}
REMOTE: ssh://[email protected]:2222/adamf/web_server.git
REMOTE: ssh://[email protected]:2222/adamf/stpweb.git
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
# Kept between runs so fetches are incremental.
CACHE: /home/adamf/.cache/web_server-ci/repo.git
SRC: /home/adamf/.cache/web_server-ci/src-${{ github.sha }}
CACHE: /home/adamf/.cache/stpweb-ci/repo.git
SRC: /home/adamf/.cache/stpweb-ci/src-${{ github.sha }}
steps:
- name: Export the pushed commit to a scratch directory
shell: bash
@@ -48,8 +48,8 @@ jobs:
docker run --rm \
-v "$SRC":/src:ro \
-w /src/backend \
-v web_server_ci_gomod:/go/pkg/mod \
-v web_server_ci_gobuild:/root/.cache/go-build \
-v stpweb_ci_gomod:/go/pkg/mod \
-v stpweb_ci_gobuild:/root/.cache/go-build \
golang:1.26 \
sh -c 'go vet ./... && go test ./...'
@@ -61,7 +61,7 @@ jobs:
docker run --rm \
-v "$SRC":/src:ro \
-w /src/python \
-v web_server_ci_pip:/root/.cache/pip \
-v stpweb_ci_pip:/root/.cache/pip \
-e PYTHONDONTWRITEBYTECODE=1 \
python:3.12-slim \
sh -c 'pip install --quiet --disable-pip-version-check --root-user-action=ignore -r requirements-dev.txt && python -m pytest tests -q -p no:cacheprovider'
@@ -77,15 +77,15 @@ jobs:
runs-on: self-hosted
steps:
- name: Pull changes
working-directory: /home/adamf/deploy/web_server
working-directory: /home/adamf/deploy/stpweb
env:
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
SHA: ${{ github.sha }}
shell: bash
run: |
set -eu
git config --global --add safe.directory /home/adamf/deploy/web_server
git fetch ssh://[email protected]:2222/adamf/web_server.git main
git config --global --add safe.directory /home/adamf/deploy/stpweb
git fetch ssh://[email protected]:2222/adamf/stpweb.git main
# Deploy only the tested commit; a newer main gets its own
# run. This also stops a re-run rolling the site back.
if [ "$(git rev-parse FETCH_HEAD)" != "$SHA" ]; then
@@ -96,7 +96,7 @@ jobs:
git reset --hard FETCH_HEAD
- name: Run docker compose up
working-directory: /home/adamf/deploy/web_server
working-directory: /home/adamf/deploy/stpweb
env:
COMPOSE_BAKE: "false"
# Shared with maintenance.yaml so the two never run compose at once.