-
Notifications
You must be signed in to change notification settings - Fork 75
/
4b_production.yml
54 lines (53 loc) · 1.27 KB
/
4b_production.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
48
49
50
51
52
53
54
version: "1.0"
stages:
- "clone"
- "build"
- "testing"
- "prod"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefresh-contrib/helm-promotion-sample-app"
revision: '${{CF_REVISION}}'
stage: "clone"
build_app_image:
title: "Building Docker image"
type: "build"
image_name: "kostiscodefresh/helm-promotion-app"
working_directory: "${{clone}}"
tags:
- "latest"
- '${{CF_SHORT_REVISION}}'
dockerfile: "Dockerfile"
stage: "build"
registry: dockerhub
myTests:
title: Integration Tests
type: freestyle
working_directory: "${{clone}}"
stage: "testing"
arguments:
image: 'byrnedo/alpine-curl'
commands:
- "curl http://app:8080/health"
services:
composition:
app:
image: '${{build_app_image}}'
ports:
- 8080
deployProd:
title: Deploying to Production
type: helm
stage: prod
working_directory: ./helm-promotion-sample-app
arguments:
action: install
chart_name: ./chart/sample-app
release_name: example-prod
helm_version: 3.0.2
kube_context: 'mydemoAkscluster@BizSpark Plus'
namespace: production
custom_value_files:
- ./chart/values-prod.yaml