-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.42 KB
/
pulumi-preview.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
name: Pulumi Preview
on:
workflow_call:
inputs:
api-tag:
description: The API tag to deploy
type: string
required: false
stack-name:
description: The Pulumi stack
type: string
required: true
api-url:
description: The API URL
type: string
required: true
client-url:
description: The web client URL
type: string
required: true
jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- uses: pnpm/action-setup@v4
- name: Build Client
env:
VITE_API_URL: ${{ inputs.api-url }}
run: |
pnpm --filter client install
pnpm --filter client run build
- run: pnpm install --ignore-workspace
working-directory: pulumi
- uses: pulumi/actions@v3
name: Preview
with:
command: preview
stack-name: ${{ inputs.stack-name }}
upsert: true
work-dir: pulumi
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: us-east-1
API_TAG: ${{ inputs.api-tag }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}