-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.32 KB
/
infra-main-apply.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Apply changes
permissions:
id-token: write
contents: read
pull-requests: write
on:
workflow_dispatch:
push:
branches:
- main
paths:
- resources/**
- Pulumi.*
- pnpm-lock.yaml
- package.json
- .github/workflows/*.yml
run-name: Apply branches/branches-main/main by @${{ github.actor }}
jobs:
pulumi:
name: Pulumi
runs-on: ubuntu-latest
concurrency: pulumi-main-up
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: up
comment-on-pr: true
stack-name: branches/branches-main/main