-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (66 loc) · 1.84 KB
/
push.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: On Push
permissions:
id-token: write
contents: read
on:
push:
branches:
- main
jobs:
apply-changes:
name: Apply ${{ matrix.stack }}
runs-on: ubuntu-latest
concurrency: pulumi-${{ matrix.stack }}
strategy:
fail-fast: false
matrix:
include:
- path: stacks/app
stack: app-prod
refresh: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm 📦
uses: pnpm/action-setup@v2
with:
version: 8.1.1
- name: Authenticate with Google 🔑
uses: google-github-actions/auth@v0
with:
workload_identity_provider:
${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- uses: cobraz/setup-gke-gcloud-auth-plugin@v1
- name: Use Node LTS
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Lint
run: pnpm lint
- uses: pulumi/actions@v4
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
with:
command: up
refresh: ${{ matrix.refresh }}
stack-name: ${{ matrix.stack }}
work-dir: ${{ matrix.path }}
todo-to-issue:
name: Create issue from TODO comments
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Create issue from TODO comments 📝
uses: derjuulsn/todo-issue@main
with:
excludePattern: '^(node_modules/)'
label: needs-refinement
env:
GITHUB_TOKEN: ${{ secrets.PAYTRON_GITHUB_TOKEN }}