This repository is configured to automatically deploy theme updates to our staging and production servers via GitHub Actions (see ADR0004).
- The repository itself is configured to use self-hosted runners (see Add Self-Hosted Runners)
- The Omeka S host server has the GitHub Runner application installed
- There are two GitHub Actions workflows in this repository, one for deploys to the stage server and one for deploys to the production server.
- There is a special user,
mitdeployon the Digital Scholar hosted server that has very limited privileges (limited to read/write/delete on thethemesandmodulesdirectories for the Omeka install).
Head to Settings > Actions > Runners for the repo and click the New self-hosted runner button. This will generate the necessary commands a token for the installation on the host server. Two other important notes.
- Make sure to set a label and a name for the running when running the config command with the following parameters
--labels <ENV> --name <NAME>(where<ENV>is eitherstageorprodand is eithermitlibraries-stage-omekaormitlibraries-prod-omeka). These values are used in the GitHub Actions to limit where tasks are run. - Configure the runner package to run as a service (see github runner as a service for details)
When creating the GitHub Actions workflows, be sure to specify
runs-on: [self-hosted, Linux, stage]for the stage runner/server and specify
runs-on: [self-hosted, Linux, prod]for the production runner/server.