-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.1 KB
/
pulumi_preview.yaml
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
name: Pulumi Preview
on:
workflow_dispatch:
pull_request:
branches: main
permissions:
contents: read
id-token: write
pull-requests: write
jobs:
pulumi-preview:
name: Preview infrastructure changes
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
cache: pip
- name: Install dependencies 📦️
run: |
pip install -r requirements/requirements.txt -e .
pip install -r requirements/dev-requirements.txt
- name: Configure AWS credentials 🔐
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::767397675902:role/hubverse-infrastructure-read-role
aws-region: us-east-1
- name: Previewing infrastructure 👀
uses: pulumi/actions@v5
with:
command: preview
stack-name: hubverse/hubverse-aws/hubverse
comment-on-pr: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.BSWEGER_PULUMI_DEMO }}