Skip to content

Instantly share code, notes, and snippets.

@sedflix
Last active August 11, 2023 08:36
Show Gist options
  • Save sedflix/c5734b178687cf5d72ed849d5e41db8f to your computer and use it in GitHub Desktop.
Save sedflix/c5734b178687cf5d72ed849d5e41db8f to your computer and use it in GitHub Desktop.
Helm Chart Publish using Cloud Build
steps:
- name: 'eu.gcr.io/king-container-registry-shared/custom-cloud-builders/helm:latest'
dir: <where-the-chart-is>
id: package-push
script: >
helm dependency build ;
NAME=`helm package . | awk -F "/" '{print $NF}' -`;
helm push $NAME oci://eu.gcr.io/<artifcat-registry-name>/<reposity-name>/
options:
workerPool: <worker-pool-user>
steps:
- name: 'eu.gcr.io/king-container-registry-shared/custom-cloud-builders/helm:latest'
dir: cert-manager-check
id: package-push
script: >
helm dependency build ;
NAME=`helm package . | awk -F "/" '{print $NF}' -`;
helm push $NAME oci://eu.gcr.io/king-container-registry-shared/helm/
options:
substitutionOption: ALLOW_LOOSE
workerPool: projects/438101560356/locations/europe-west1/workerPools/default-worker-pool
substitutions:
_APP: cert-manager-check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment