Skip to content

Sample repository illustrating how you can deploy changes to your Auth0 accounts with GitHub Actions

License

Notifications You must be signed in to change notification settings

sandrinodimattia/github-actions-deploy-auth0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploying changes to your Auth0 accounts with GitHub Actions

Deploy to Auth0 production account Deploy to Auth0 staging account

This is a sample repository which shows how you can use GitHub & GitHub Actions as an "Infrastructure as Code" solution for Auth0. A full description of how this works can be found on my blog.

Performing an export

To perform an export you'll run the following command:

DEV_AUTH0_CLIENT_SECRET=... npm run export:dev

Note that you'll need to update the /config/dev.json file with your Auth0 account details and the Client ID of the client you created for the Deploy CLI. The Client Secret then needs to be provided as an environment variable in the command above.

GitHub Actions

In this example each push to main or staging will result in a workflow being executed which will deploy the changes to your Auth0 account. The settings for these workflows can also be found in the /config folder.

The Client Secrets need to be registered as Repository Secrets in your repository with the following names:

  • PROD_AUTH0_CLIENT_SECRET
  • STAGING_AUTH0_CLIENT_SECRET

About

Sample repository illustrating how you can deploy changes to your Auth0 accounts with GitHub Actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published