4b00af9b31
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
GitHub Deployments Plugin
The GitHub Deployments Plugin displays recent deployments from GitHub.
Getting Started
- Provide OAuth credentials:
- Create an OAuth App and set env variables for ID and Secret.
export AUTH_GITHUB_CLIENT_ID={{YOUR_CLIENT_ID}}
export AUTH_CLIENT_SECRET={{YOUR_CLIENT_SECRET}}
- Install the GitHub Deployments Plugin.
# packages/app
yarn add @backstage/plugin-github-deployments
- Add the plugin to the app
// packages/app/src/plugins.ts
export { plugin as GithubDeployments } from '@backstage/plugin-github-deployments';
- Add the
EntityGithubDeploymentsCardto the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityGithubDeploymentsCard } from '@backstage/plugin-github-deployments';
const OverviewContent = () => (
<Grid container spacing={3} alignItems="stretch">
// ...
<Grid item xs={12} sm={6} md={4}>
<EntityGithubDeploymentsCard />
</Grid>
// ...
</Grid>
);
- Add the
github.com/project-slugannotation to yourcatalog-info.yamlfile:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: backstage
description: |
Backstage is an open-source developer portal that puts the developer experience first.
annotations:
github.com/project-slug: YOUR_PROJECT_SLUG
spec:
type: library
owner: CNCF
lifecycle: experimental
