-
Notifications
You must be signed in to change notification settings - Fork 4
/
codefresh.yml
31 lines (31 loc) · 941 Bytes
/
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
version: '1.0'
steps:
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: phsteve/kube-toy
working_directory: ./
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
PushingToDockerRegistry:
title: Pushing to Docker Registry
type: push
candidate: '${{BuildingDockerImage}}'
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
registry: cfcr
SetHelmChartVersion:
image: golang:1.8
description: update version in chart yaml
working_directory: helm/kube-toy/
commands:
- VERSION=$(cat Chart.yaml | grep -m 1 ^version:| awk '{print $2}')
- NEW_VERSION="${VERSION}-${{CF_BRANCH_TAG_NORMALIZED}}"
- sed -i "s/$VERSION/$NEW_VERSION/g" Chart.yaml
HelmPush:
working_directory: ./helm/kube-toy
image: 'codefresh/cfstep-helm:2.9.1'
environment:
- ACTION=push
- CHART_NAME=./
- RELEASE_NAME=kube-toy
- KUBE_CONTEXT=Beta