Skip to content

Buildkite plugin that provides a post-checkout hook to bundle Backstage catalog files into our CDK Docker builds

License

Notifications You must be signed in to change notification settings

cultureamp/backstage-cdk-assets-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backstage-cdk-assets-buildkite-plugin

Simply provides a post-checkout hook to enable Backstage catalog-info.yaml files to be copied into our ops CDK directory prior to it being built into a Docker image using docker-compose plugin

Example

Add the cultureamp/backstage-cdk-assets plugin to your existing CDK build step in your pipeline.yml, prior to the docker-compose plugin:

steps:
- plugins:
  - cultureamp/backstage-cdk-assets#v1.1.1:
  - docker-compose#v3.8.0:
      build: cdk
      config: docker-compose.ci.yml

By default the plugin assumes your CDK project is at ops and will copy Backstage files into a .backstage directory within. Configure the source and destination paths with the source and dest parameters respectively:

steps:
- plugins:
  - cultureamp/backstage-cdk-assets#v1.1.1:
      source: asset     # assets copied from ./asset
      dest: ops/cdk     # assets copied into ./ops/cdk/.backstage
  - docker-compose#v3.8.0:
      build: cdk
      config: docker-compose.ci.yml

Developing

To run the tests:

docker-compose run --rm tests

To run linting:

docker-compose run --rm lint

About

Buildkite plugin that provides a post-checkout hook to bundle Backstage catalog files into our CDK Docker builds

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages