-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh.yaml
35 lines (35 loc) · 982 Bytes
/
codefresh.yaml
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
version: '1.0'
steps:
main_clone:
title: Cloning main repository...
type: git-clone
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
helm_lint:
title: Lint Helm Chart
image: quay.io/helmpack/chart-testing:v3.5.1
commands:
- ct lint --config="charts/ct_config.yaml"
helm_package:
title: Building Helm Chart
image: codefresh/cfstep-helm:3.6.1
commands:
- cf_export PACKAGE=$(helm package --app-version ${{CF_REVISION}} ./charts/express-demo | cut -d " " -f 8)
get_repo_url:
image: codefresh/cli:latest
commands:
- cf_export HELM_URL=$(codefresh get ctx CF_HELM_DEFAULT -o=yaml | grep repositoryUrl | cut -d "'" -f 2)
when:
branch:
only:
- master
push:
image: codefresh/cfstep-helm:3.6.1
environment:
- ACTION=push
- CHART_REF=charts/express-demo
- CHART_REPO_URL=${{HELM_URL}}
when:
branch:
only:
- master