-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.75 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
defaults:
run:
working-directory: ./src/hubverse_infrastructure
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up PDM 🐍
id: setup_pdm
# using the PDM action because actions/setup-python doesn't suppport
# caching for PDM out of the box
# https://github.com/pdm-project/setup-pdm?tab=readme-ov-file#why-do-i-need-this-action
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies 📦️
run: |
echo "installing project dependencies"
pdm config python.use_venv false
pdm install
- name: Configure AWS credentials 🔐
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::767397675902:role/hubverse-administration
aws-region: us-east-1
- name: Debug 🐛
run: |
echo ${{ steps.setup_pdm.outputs.python-path }}
echo ${{ steps.setup_pdm.outputs.pdm-bin }}
pip list
pdm list
pdm venv list
echo "$PATH"
echo "$PYTHONPATH"
which python
env:
PYTHONPATH: .venv/bin
- name: Previewing infrastructure 👀
uses: pulumi/actions@v5
with:
command: preview
stack-name: bsweger/hubverse-aws/hubverse
comment-on-pr: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.BSWEGER_PULUMI_DEMO }}
PYTHONPATH: .venv/bin