-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.27 KB
/
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
name: Deploy
# Only trigger, when the build workflow succeeded
on:
workflow_run:
workflows: ["Deploy Images to GHCR"]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup-and-preview:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Setup & Preview
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./infra
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
uses: coursier/cache-action@v6
- name: Set up Scala CLI (for Scala 3)
uses: VirtusLab/scala-cli-setup@main
with:
jvm: corretto:21
- name: Install Pulumi CLI
uses: pulumi/actions@v5
- name: Configure Pulumi
run: pulumi login
- name: Configure Pulumi Plugins
run: pulumi plugin install language scala 0.3.2 --server github://api.github.com/VirtusLab/besom
- name: Select Pulumi stack
run: pulumi stack select planktonsoft/crappy-board-prod
- name: Pulumi Preview
run: pulumi preview