Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Buildkite plugin to inject buildkite-agent metadata into environment

License

Notifications You must be signed in to change notification settings

ACloudGuru/metadata-env-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metadata-env-buildkite-plugin

Buildkite plugin to inject buildkite-agent metadata into environment

This is particularly useful as block step values are saved in a build's meta-data.

https://buildkite.com/docs/pipelines/block-step

Example

steps:
  - block: "Request Release"
    fields:
      - select: "Select account"
        key: ROLE # saves to buildkite-agent meta-data
        options:
          - label: "Production"
            value: "arn:aws:iam::123456789:role/production-role"
          - label: "Staging"
            value: "arn:aws:iam::987654321:role/staging-role"
      - select: "Select runtime environment"
        key: node-env # saves to buildkite-agent meta-data
        options:
          - label: "Production"
            value: "production"
          - label: "Development"
            value: "development"
  - command: echo \$NODE_ENV
    plugins:
      ACloudGuru/metadata-env:
        keys:
          - ROLE
          - node-env=NODE_ENV #remaps node-env key to NODE_ENV <key>=<alias>

About

Buildkite plugin to inject buildkite-agent metadata into environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages