Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simenandre/pulumi-config
Update your Pulumi configuration in GitHub Actions
https://github.com/simenandre/pulumi-config
actions github-actions pulumi
Last synced: 9 days ago
JSON representation
Update your Pulumi configuration in GitHub Actions
- Host: GitHub
- URL: https://github.com/simenandre/pulumi-config
- Owner: simenandre
- License: apache-2.0
- Created: 2021-07-04T13:05:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T19:45:05.000Z (18 days ago)
- Last Synced: 2024-10-31T07:42:16.746Z (16 days ago)
- Topics: actions, github-actions, pulumi
- Language: TypeScript
- Homepage:
- Size: 7.86 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simenandre/pulumi-config
Update Pulumi configuration with Github Actions\
This [Github Actions][] uses [Pulumi Automation API][] to update your stack configuration.
Useful when you need to automate changes![github actions]: https://github.com/features/actions
[pulumi automation api]: https://www.pulumi.com/blog/automation-api/---
Built to make it easier and safer to update Pulumi configurations with Github
Actions. Pulumi CLI is no longer needed – your workflow gets less cluttered and
easier to read.- ⚙️ Uses Pulumi to update config.
- 🔒 Supports secrets! (also hidden from log output)
- 📤 Reads configuration as output## Getting Started
```yaml
jobs:
bump-tag:
name: Update tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: simenandre/pulumi-config@v2
with:
stack-name: dev
key: unleash.tag
value: ${{ steps.something.new-tag }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
```## Configuration
- `stack-name`: Which stack you want to apply to, e.g. `dev`. (Required)
- `key`: Set key value. e.g: `service-name.tag`
- `value`: Value to set
- `work-dir`: Location of your Pulumi files (Default is `./`)
- `secret`: Store the config value as secret and hide it from output (Default is
`false`)
- `cloud-url`: A cloud URL to log in to.## Outputs
If `key` is set, the function will return that key as a simple output. That
could look something like this:```yaml
jobs:
get-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: simenandre/pulumi-config@v2
id: config
with:
stack-name: dev
key: unleash.tag
- run: echo ${{ steps.config.outputs.key }}
```But you can also get the whole configuration, like this:
```yaml
jobs:
get-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: simenandre/pulumi-config@v2
id: config
with:
stack-name: dev
key: unleash.tag
- run: echo ${{ fromJson(steps.config.outputs.config).unleash.tag }}
```## Contribute
Feel free to open an issue or pull request. The Todoist Action is still
experimental, help us get is stable! Feedback is much appreciated!