-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (40 loc) · 1.3 KB
/
action.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
name: "Clevyrnetes Helm Deploy Action"
description: "Updates a Clevyrnetes Helm Chart"
branding:
icon: upload-cloud
color: green
runs:
using: composite
steps:
- name: GCloud auth
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ env.GCLOUD_KEY_FILE }}
- name: GKE auth
uses: google-github-actions/get-gke-credentials@v1
with:
cluster_name: ${{ env.GCLOUD_CLUSTER_NAME || 'clevyrnetes' }}
project_id: ${{ env.HOST_PROJECT || 'momma-motus' }}
location: ${{ env.GKE_LOCATION || 'us-central1' }}
- name: Install Helm v3.12.3
shell: bash
run: |
curl -sf https://get.helm.sh/helm-v3.12.3-linux-amd64.tar.gz | \
tar -xzvf - --strip-components=1 \
linux-amd64/helm
mv helm "$(which helm)"
- name: Set up SOPS
uses: mdgreenwald/[email protected]
- name: Set up Helm secrets
shell: bash
run: helm plugin install https://github.com/jkroepke/helm-secrets --version=v4.5.1
- name: Add Helm repo
shell: bash
run: |
helm repo add clevyr "${HELM_URL:-https://helm.clevyr.cloud}"
helm repo update clevyr
- name: Main script
shell: bash
env:
ACTION_PATH: ${{ github.action_path }}
run: "$ACTION_PATH/main.sh"