Merge pull request 'ci(deploy): correct deploy runner label to uom-deploy-runner' (#64) from ci/fix-deploy-runner-label into main
All checks were successful
Build container images / build (push) Successful in 2m24s
Build container images / deploy (push) Successful in 43s

Reviewed-on: UOM/website#64
Reviewed-by: Colby Whitlock <whitlocktech@gmail.com>
This commit is contained in:
2026-07-17 10:52:00 +00:00

View File

@@ -5,13 +5,13 @@
# Two jobs run in sequence: # Two jobs run in sequence:
# build — builds & pushes website-app / website-bot images (on ubuntu-latest) # build — builds & pushes website-app / website-bot images (on ubuntu-latest)
# deploy — `needs: build`, so it starts only after a clean build+push, and # deploy — `needs: build`, so it starts only after a clean build+push, and
# pulls + recreates the stack on the production host (on uom_deploy) # pulls + recreates the stack on the production host (on uom-deploy-runner)
# #
# Prerequisites (one-time): # Prerequisites (one-time):
# • An always-on Gitea runner with label `ubuntu-latest` whose jobs have the # • An always-on Gitea runner with label `ubuntu-latest` whose jobs have the
# host Docker socket mounted (/var/run/docker.sock), so `docker build` talks # host Docker socket mounted (/var/run/docker.sock), so `docker build` talks
# to the host daemon. This also gives free layer caching between runs. # to the host daemon. This also gives free layer caching between runs.
# • A second self-hosted runner labelled `uom_deploy` ON the production host, # • A second self-hosted runner labelled `uom-deploy-runner` ON the production host,
# with access to the Docker daemon and to /home/perry/website (the directory # with access to the Docker daemon and to /home/perry/website (the directory
# holding the production docker-compose.yml + .env). This is what actually # holding the production docker-compose.yml + .env). This is what actually
# rolls the stack; it must be able to `docker compose pull` from the registry # rolls the stack; it must be able to `docker compose pull` from the registry
@@ -102,7 +102,7 @@ jobs:
# this wait for a clean build+push — if the build fails, deploy never fires, # this wait for a clean build+push — if the build fails, deploy never fires,
# so the running stack is left untouched rather than torn down for nothing. # so the running stack is left untouched rather than torn down for nothing.
needs: build needs: build
runs-on: uom_deploy runs-on: uom-deploy-runner
# Guard against a workflow_dispatch fired from a non-main branch: only ever # Guard against a workflow_dispatch fired from a non-main branch: only ever
# deploy the main line to production. # deploy the main line to production.
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'