Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iain-s/example-azure-func
Created from a template
https://github.com/iain-s/example-azure-func
Last synced: 4 days ago
JSON representation
Created from a template
- Host: GitHub
- URL: https://github.com/iain-s/example-azure-func
- Owner: Iain-S
- License: isc
- Created: 2021-07-15T16:28:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T18:04:04.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T06:53:39.521Z (7 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Probot & Azure Functions example
This repository is an example of how to deploy the "Hello, World" of probot apps to [Azure Functions](https://azure.microsoft.com/en-us/services/functions).
## Local setup
```
npm install
npm start
```Open http://localhost:3000 and follow instructions to register a GitHub App for testing. When done, an `.env` file with your app's credentials will exist.
## Deployment through GitHub Actions
In the Azure Console, navigate to `Function App` -> your app -> `Configuration` and add the environment variables required by Probot
- `APP_ID`
- `PRIVATE_KEY` (you can encode your key value at https://www.base64encode.org/)
- `WEBHOOKS_SECRET`Then in your repository settings, create two secrets:
1. `AZURE_CREDENTIALS`: see https://github.com/azure/login#configure-deployment-credentials for how to retrieve it from the Azure Console.
2. `AZURE_FUNCTION_APP_PUBLISH_PROFILE`: see https://github.com/Azure/functions-action#using-publish-profile-as-deployment-credential-recommended for how to retrieve it from the Azure Console.## License
[ISC](LICENSE)