-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 930 Bytes
/
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
name: Pulumi
on:
push:
branches:
- "master"
- "development"
- "renovate/*"
jobs:
preview:
name: Preview
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
workdir: [ l1, l2 ]
stack: [hetzner]
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: '19.9.0'
- name: Decode kubeconfig
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > $HOME/.kube/config
cat $HOME/.kube/config
shell: bash
- run: npm install
working-directory: ${{ matrix.workdir }}
- uses: pulumi/actions@v6
with:
command: preview
work-dir: ${{ matrix.workdir }}
stack-name: ${{ matrix.stack }}
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}