-
Notifications
You must be signed in to change notification settings - Fork 77
/
codefresh.yml
47 lines (47 loc) · 1.1 KB
/
codefresh.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '1.0'
stages:
- prepare
- build
- store
- deploy
steps:
clone:
title: Cloning main repository...
stage: prepare
type: git-clone
repo: codefresh-contrib/helm-sample-app
revision: "${{CF_BRANCH}}"
git: github
build:
title: Building Docker Image
stage: build
type: build
working_directory: ./helm-sample-app
image_name: anaisurlichs/helm-go-example
tag: 2.0.0
dockerfile: Dockerfile
store:
title: Storing Helm Chart
type: helm
stage: store
working_directory: ./helm-sample-app
arguments:
action: push
helm_version: 3.0.2
chart_name: charts/helm-example
kube_context: anais-cluster@codefresh-sa
deploy:
type: helm
stage: deploy
working_directory: ./helm-sample-app
arguments:
action: install
chart_name: charts/helm-example
release_name: my-go-chart-prod
helm_version: 3.0.2
kube_context: anais-cluster@codefresh-sa
custom_values:
- 'buildID=${{CF_BUILD_ID}}'
- 'image_pullPolicy=Always'
- 'image_tag=2.0.0'
- 'replicaCount=3'