Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manzanit0/monocrat
GitHub App to work with custom deployment rules
https://github.com/manzanit0/monocrat
deployment gha github
Last synced: 16 days ago
JSON representation
GitHub App to work with custom deployment rules
- Host: GitHub
- URL: https://github.com/manzanit0/monocrat
- Owner: manzanit0
- Created: 2023-05-04T12:43:43.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T08:06:43.000Z (9 months ago)
- Last Synced: 2024-12-03T04:15:50.020Z (2 months ago)
- Topics: deployment, gha, github
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monocrat
Monocrat is a collection of GitHub application prototypes for different purposes. Currently there are two available:
- ci-check: Showcases how to use the Checks API to run linters and build docker images.
- deployment-protection-rule: Showcases how to extend the GitHub Deployments feature with [custom protection
rules](https://docs.github.com/en/actions/deployment/protecting-deployments/creating-custom-deployment-protection-rules)## Resources
- https://docs.github.com/en/apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app
- https://trstringer.com/github-app-authentication/
- https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#deployment_protection_rule
- https://docs.github.com/en/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run
- https://github.com/google/go-github/issues/2774## Hacking
To build the image of a service:
```sh
docker build -t monocrat:latest --build-arg SERVICE_PATH=./cmd/deployment-protection-rule .
```