1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

Add documentation for use with Google Cloud Build (#170)

Signed-off-by: Naseem <naseemkullah@gmail.com>
This commit is contained in:
Naseem
2019-09-12 06:55:44 -04:00
committed by Reinhard Nägele
parent e731d947fb
commit 7da298b88d
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# Chart testing example with Google Cloud Build
This example shows how to lint and test charts using [Google Cloud Build](https://cloud.google.com/cloud-build/)
Since Google Cloud Build will ignore copying over `.git` by default, you will need to initialize `git` and add a `remote`. This example assumes that there is a pre-existing GKE cluster with `helm` already installed.

View File

@@ -0,0 +1,30 @@
steps:
- name: 'gcr.io/cloud-builders/git'
id: 'git-init'
args: ['init']
waitFor: ['-']
- name: 'gcr.io/cloud-builders/git'
id: 'git-add-remote'
args: ['remote', 'add', 'origin', 'git@github.com:github-account/charts-repo.git']
waitFor: ['git-init']
- name: 'gcr.io/cloud-builders/kubectl'
id: 'cluster-info'
args: ['cluster-info']
waitFor: ['git-add-remote']
- name: quay.io/helmpack/chart-testing
id: 'lint-and-install-charts'
entrypoint: 'ct'
args: ['lint-and-install']
waitFor: ['cluster-info']
options:
env:
- CLOUDSDK_COMPUTE_ZONE=cluster-location
- CLOUDSDK_CONTAINER_CLUSTER=cluster-name
timeout:
3600s