Skip to content

chore: change publish workflow to tag push event (#25) #28

chore: change publish workflow to tag push event (#25)

chore: change publish workflow to tag push event (#25) #28

Workflow file for this run

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@v3
- id: auth
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
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@v1
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