-
Notifications
You must be signed in to change notification settings - Fork 76
/
4a_staging.yml
56 lines (54 loc) · 1.33 KB
/
4a_staging.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
55
56
version: "1.0"
stages:
- "clone"
- "validate"
- "build"
- "staging"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefresh-contrib/helm-promotion-sample-app"
revision: '${{CF_REVISION}}'
stage: "clone"
prechecks:
type: parallel
stage: 'validate'
steps:
lint:
title: Lint
working_directory: "${{clone}}"
image: golangci/golangci-lint:v1.33.0
commands:
- golangci-lint run -v .
securityAnalysis:
title: Security Scan
working_directory: "${{clone}}"
image: 'securego/gosec:v2.5.0'
commands:
- gosec ./...
build:
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
deployStaging:
title: Deploying to Staging
type: helm
stage: staging
working_directory: ./helm-promotion-sample-app
arguments:
action: install
chart_name: ./chart/sample-app
release_name: example-staging
helm_version: 3.0.2
kube_context: 'mydemoAkscluster@BizSpark Plus'
namespace: staging
custom_value_files:
- ./chart/values-staging.yaml