diff --git a/README.md b/README.md index 318ab39..1444f8d 100644 --- a/README.md +++ b/README.md @@ -96,3 +96,20 @@ Run all checks ```shell npm run validate ``` + +## Deployment + +This project uses Github actions to deploy changes pushed to the `main` branch to fly.io. + +The deployment pipeline is defined in [.github/workflows/deploy.yml](.github/workflows/deploy.yml) +and [fly.toml](fly.toml). Authentication to fly.io is enabled by +a `FLY_API_TOKEN` [repository secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository). + +The following commands were used to initialize the fly application. + +```shell +fly apps create awesome-radio-1ae3 +fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app awesome-radio-1ae3 +fly volumes create data --size 1 --app awesome-radio-1ae3 +fly scale memory 512 --app awesome-radio-1ae3 +```