-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.09 KB
/
deploy-production.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: Pulumi Deploy Staging
on:
push:
branches:
- prod
workflow_dispatch:
branches:
- prod
jobs:
up:
name: Deploy
runs-on: ubuntu-latest
environment:
name: prod
url: https://turingev.de
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup SSH Keys
shell: bash
env:
SSH_DEPLOY_KEY: ${{secrets.SSH_DEPLOY_KEY}}
run: |
echo "$SSH_DEPLOY_KEY" > /tmp/k3se-ssh-key
- name: Setup Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
- name: Installing dependencies 📦️
run: npm ci
- name: Setup k3se
uses: nicklasfrahm/k3se@main
with:
command: --version
- name: Applying infrastructure 🚀
uses: pulumi/actions@v4
with:
command: up
stack-name: adb-sh/turingev/prod
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}