Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 2.11 KB

README.md

File metadata and controls

41 lines (29 loc) · 2.11 KB

GitHub actions for gypsum

Overview

gypsum uses GitHub Actions for its various CI/CD tasks. This currently includes:

The gypsum worker uses the bot account's token to create issues to trigger each Action.

Deployment instructions

To deploy, clone/fork this repository and apply the following modifications:

  • In index-project.yaml:
    • Replace 'ArtifactDB-bot' with the name of your bot account.
  • In config.sh:
    • Replace CF_ACCOUNT_ID with your Cloudflare account ID.
    • Replace SCHEMA_BUNDLE_URL with a URL to the desired schema bundle.
    • Replace R2_BUCKET_NAME with the name of your R2 bucket.

Several secrets must be defined for the Actions (see the Settings > Secrets > Actions tab):

  • R2_ACCESS_KEY_ID, for the access key ID.
  • R2_SECRET_ACCESS_KEY, for the access secret.
  • GH_BOT_TOKEN, for the GitHub personal access token of the bot account. This should be capable of writing issues on a public repository; typically, we use a classic token with repo:public permissions.

For forks, we have to re-enable some features:

  • Turn the Issues back on (in "Settings > General").
  • Re-enable the Actions in the "Actions" tab.
  • Re-enable the scheduled purge workflow ("Actions > Purge gypsum projects").

And that's it. Make sure you use the full name of your new repository (i.e., OWNER/REPO) in the gypsum worker's GITHUB_CI_REPOSITORY variable.