-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.15 KB
/
helm-gke-deploy.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
name: Helm Deploy to GKE
on:
push:
branches: [ "main" ]
paths:
- "infrastructure/k8s/folio-feed-helm/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
GKE_CLUSTER: folio-feed-cluster
GKE_LOCATION: us-central1
jobs:
helm-deploy:
name: Helm Deploy to GKE
runs-on: ubuntu-latest
environment: production
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4
# Authentication via credentials json
- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: "v3.12.3"
# Get the GKE credentials so we can deploy to the cluster
- id: 'get-credentials'
uses: 'google-github-actions/get-gke-credentials@v1'
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_LOCATION }}
- name: Set up Taskfile
uses: arduino/[email protected]
- name: helm deploy
run: task helm-upgrade