Preview branches/branches-main/main by @braaar #519
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview changes | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: write | |
on: | |
pull_request: | |
paths: | |
- resources/** | |
- Pulumi.* | |
- pnpm-lock.yaml | |
- package.json | |
- .github/workflows/*.yml | |
run-name: Preview branches/branches-main/main by @${{ github.actor }} | |
jobs: | |
pulumi: | |
name: Pulumi | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- name: Use Node LTS ✨ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install dependencies 📦️ | |
run: pnpm install --frozen-lockfile | |
- name: Authenticate to GCP 🔒 | |
uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | |
service_account: conf-deployer@bjerk-core.iam.gserviceaccount.com | |
- uses: simenandre/setup-gke-gcloud-auth-plugin@v1 | |
- name: Running Pulumi 🚀 | |
uses: pulumi/actions@v4 | |
env: | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
with: | |
command: preview | |
comment-on-pr: true | |
stack-name: branches/branches-main/main |