This repository allows Stormkit to use GitHub actions to run the deployments.
Fork this repository and make sure to set the following environments variables for both API and Workerserver Services:
Environment Variable | Value | Description |
---|---|---|
STORMKIT_DEPLOYER_SERVICE |
github |
Instructs Stormkit to use GitHub Actions. |
GITHUB_RUNNER |
:namespace/:repository |
The repository name, including namespace/owner (e.g. stormkit-io/runner). |
GITHUB_APP_TOKEN |
<access-token> |
A personal access token that grants access to this GitHub repository. |
Make sure to use main
as the default branch for this repository.
- Go to github.com
- Click on your Avatar > Settings
- Scroll down and click on Developer Settings
- Expand Personal Access Tokens
- Click on Tokens (classic) if you'd like to create a token without expiration
- Click on Fine-grained tokens if you'd like to create a token with expiration
Note: If you're using a Fine-grained token make sure to expand Repository permissions
and
grant Access: Read and write
to Actions
item.
After having created a new repository by forking this template we need to specify the
STORMKIT_APP_SECRET
environment variable to handle encrypted data. To do that:
- Visit your repository
- Click on
Settings
- On the left navigation menu find and expand Security > Secrets and variables
- Click on Actions
- Click on New repository secret
- Create a new secret called
STORMKIT_APP_SECRET
and make sure that it matches the secret used by other microservices.
Check out our License.