-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.04 KB
/
cd.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
name: CD
on:
workflow_dispatch:
push:
branches:
- main
jobs:
polumi-update:
name: Pulumi Update
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install Go
uses: actions/[email protected]
with:
go-version-file: .go-version
- name: Get Go environment
id: go-env
run: |
echo "::set-output name=cache::$(go env GOCACHE)"
echo "::set-output name=modcache::$(go env GOMODCACHE)"
- name: Set up cache
uses: actions/[email protected]
with:
path: |
${{ steps.go-env.outputs.cache }}
${{ steps.go-env.outputs.modcache }}
key: polumi-update-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: polumi-update-${{ runner.os }}-go-
- name: Run pulumi up
uses: pulumi/[email protected]
with:
command: up
stack-name: main
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}