-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.06 KB
/
publish.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
name: publish
on:
push:
tags:
- '0*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-20.04
permissions:
contents: 'read'
id-token: 'write'
steps:
# Checkout the codebase
- name: Checkout
uses: actions/checkout@v4
- id: auth
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/2314364601/locations/global/workloadIdentityPools/github-actions/providers/github-actions-provider '
service_account: '[email protected]'
- name: Setup GCloud
uses: google-github-actions/setup-gcloud@v2
with:
project_id: c6o-production
- name: Deploy
run: |
curl https://storage.googleapis.com/c6o-releases/helm-charts/index.yaml --output ./index.yaml
helm package ./charts/* -d ./tmp/
helm repo index tmp --url https://charts.codezero.io --merge ./index.yaml
gsutil cp ./tmp/* gs://c6o-releases/helm-charts