Refer to steps defined in another repo

Published on December 3rd, 2024

Template

Actions used

You can check the available actions in Roadie if you visit /create/actions.

Relative path

---
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: re-useable-step-example
  title: Example of sourcing a step from a constant
spec:
  owner: roadie
  type: service

  steps:
    - $yaml: './constants/log.yaml'

./constants/log.yaml

id: log-message
action: debug:log
input:
  message: 'Hello there'

External file

---
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
  name: re-useable-step-example
  title: Example of sourcing a step from a constant
spec:
  owner: roadie
  type: service

  steps:
    - $yaml: 'https://github.com/RoadieHQ/software-templates/tree/main/scaffolder-templates/steps/log.yaml'

https://github.com/RoadieHQ/software-templates/tree/main/scaffolder-templates/steps/log.yaml

id: log-message
action: debug:log
input:
  message: 'Hello there'