Skip to content

Instantly share code, notes, and snippets.

@mhaagens
Created September 25, 2021 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhaagens/016c8139f2163a7b27fded86a5187a48 to your computer and use it in GitHub Desktop.
Save mhaagens/016c8139f2163a7b27fded86a5187a48 to your computer and use it in GitHub Desktop.
Pulumi Config
name: Infrastructure
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "infrastructure/**"
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- run: yarn install
- uses: pulumi/actions@v3
with:
command: up
stack-name: myproject-dev
work-dir: infrastructure
comment-on-pr: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
.github/
workflows/
infrastructure.yml
apps/
web/
...
infrastructure/
Pulumi.myproject-dev.yaml
Pulumi.yaml
...
package.json
yarn.lock
encryptionsalt: ENCRYPTION_SALT
config:
digitalocean:token:
secure: DIGITAL_OCEAN_TOKEN
name: myproject
runtime: nodejs
description: MyProject infrastructure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment