-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (78 loc) · 2.58 KB
/
pulumi_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
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_ENVIRONMENT: public
ARM_LOCATION: westeurope
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
name: Pulumi preview
on:
- pull_request
jobs:
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Configure Azure Credentials
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ secrets.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Set up kubectl
run: aws eks update-kubeconfig --region eu-central-1 --name StarKube
- name: Pulumi Snowflake
uses: pulumi/actions@v3
with:
command: preview
stack-name: starschema/github-actions
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
work-dir: deployment/snowflake
upsert: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
- name: Pulumi AWS
uses: pulumi/actions@v3
with:
command: preview
stack-name: starschema/github-actions
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
work-dir: deployment/aws
upsert: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Pulumi Azure
uses: pulumi/actions@v3
with:
command: preview
stack-name: starschema/github-actions
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
work-dir: deployment/azure
upsert: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Pulumi K8s
uses: pulumi/actions@v3
with:
command: preview
stack-name: starschema/github-actions
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
work-dir: deployment/kubernetes
upsert: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}