GithubHelp home page GithubHelp logo

walysonmax / github-actions-deploy-auth0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sandrinodimattia/github-actions-deploy-auth0

0.0 1.0 0.0 11 KB

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

License: MIT License

JavaScript 100.00%

github-actions-deploy-auth0's Introduction

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

github-actions-deploy-auth0's People

Contributors

sandrinodimattia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.