-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 1.43 KB
/
pulumi.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
on: [workflow_dispatch]
name: Pulumi
jobs:
dev:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: hack/pulumi/go.mod
- name: Download Go dependencies
run: go mod download
working-directory: hack/pulumi
- name: Refresh and update Pulumi stack
uses: pulumi/[email protected]
with:
command: up
refresh: true
stack-name: dev
work-dir: hack/pulumi
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_TOKEN }}
DOCKER_BUILDKIT: 1
- name: Configure kubectl
uses: azure/[email protected]
with:
method: kubeconfig
kubeconfig: ${{ secrets.DO_DEV_KUBECONFIG }}
- name: Flush existing data
run: |
kubectl config set-context --current --namespace sdps
kubectl delete job --all
kubectl create -f hack/kube/tools/mysql-recreate-databases-job.yaml
kubectl create -f hack/kube/tools/minio-recreate-buckets-job.yaml
kubectl wait --for=condition=complete --timeout=120s job --all
kubectl rollout restart deployment temporal
kubectl rollout restart deployment enduro
kubectl rollout restart statefulset enduro-a3m
kubectl create -f hack/kube/base/mysql-create-locations-job.yaml