Files
backstage/plugins/github-deployments
Andrew Johnson 7b30d0cdcf prettier
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-06 14:38:56 +01:00
..
2021-03-31 15:36:32 +00:00
2021-04-06 14:38:56 +01:00
2021-03-31 20:26:04 +01:00
2021-03-30 17:46:22 +01:00

GitHub Deployments Plugin

The GitHub Deployments Plugin displays recent deployments from GitHub.

github-deployments-card

Prerequisites

Getting Started

  1. Install the GitHub Deployments Plugin.
# packages/app

yarn add @backstage/plugin-github-deployments
  1. Add the plugin to the app
// packages/app/src/plugins.ts

export { githubDeploymentsPlugin as GithubDeploymentsPlugin } from '@backstage/plugin-github-deployments';
  1. Add the EntityGithubDeploymentsCard to 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>
);
  1. Add the github.com/project-slug annotation to your catalog-info.yaml file:
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