NOT intended for production use. For demonstration purposes only 😊 .
A demo node express app to show off GitHub Actions CD capabilities by deploying to an Azure App Service.
This web app will allow you to search for any GitHub user by their handle!
Part of the GitHub Demo Day series! View Youtube recording here for a step-by-step walkthrough.
- Create an Azure App Service and App Service Plan to host your node express app
- Under the App Service -> Settings: Configuration -> Set the Application Setting:
WEBSITE_NODE_DEFAULT_VERSION
to10.0.0
- Create deployment slots in the App Service for your different enviroments
- Download the Publish Profile for the respective deployment slots
- Update
github/workflows
files with the correctAZURE_WEBAPP_NAME
- Create environments secret
AZURE_WEBAPP_PUBLISH_PROFILE
for the correlating environments defined
- Fork/Clone Repo
- Open in Codespaces or IDE of your choice
npm install
npm run test
npm run dev
-
Create a new branch
-
Introduce new commits
-
For the specific .yml workflow to run, update the comments in the
on:
section to include themain
branch -
Create a pull request to the main branch
-
Check the Actions tab, Pull Request, and Environments page as the workflow runs!
Open a discussion thread in this repo!
Participate in our Support Community for Code-to-Cloud: