From fda5a6ee56a7c88573dec066c8ee63d63a5c3079 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Fri, 3 Jan 2020 13:46:59 -0600 Subject: [PATCH] Updating pipeline to deploy with helm --- pipeline.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/pipeline.yml b/pipeline.yml index 9bd3f0b..71908ce 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,4 +1,10 @@ --- +resource_types: + - name: helm + type: docker-image + source: + repository: linkyard/concourse-helm-resource + resources: - name: git-develop type: git @@ -35,7 +41,13 @@ resources: repository: ((nexus_docker_write.host))/nulloctet/baphomet-js username: ((nexus_docker_write.username)) password: ((nexus_docker_write.password)) - + - name: helm + type: helm + source: + cluster_url: ((helm.cluster_url)) + cluster_ca: ((helm.cluster_ca)) + token: ((helm.token)) + jobs: # Development Pipeline - name: test-develop @@ -123,6 +135,24 @@ jobs: build: package tag_file: package/tag tag_as_latest: false + - name: deploy-develop-helm + plan: + - get: git-develop + passed: [deploy-develop-image] + trigger: true + - put: helm + params: + chart: git-develop/.helm + values: git-develop/.helm/values.yaml + release: baphomet-js-dev + override_values: + - key: image.tag + value: dev + - key: image.pullPolicy + value: Always + - key: app.env.node_env + value: development + recreate_pods: true # Release Pipeline - name: test-release plan: