forked from codefresh-contrib/python-flask-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefresh.yml
More file actions
48 lines (48 loc) · 1.35 KB
/
codefresh.yml
File metadata and controls
48 lines (48 loc) · 1.35 KB
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
version: '1.0'
stages:
- checkout
- package
- deploy
steps:
clone:
title: Cloning main repository...
type: git-clone
arguments:
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
revision: '${{CF_REVISION}}'
stage: checkout
BuildingDockerImage:
title: Building Docker Image
type: build
working_directory: ${{clone}}
arguments:
image_name: my-flask-app
tag: '${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}'
dockerfile: Dockerfile
stage: package
deploy:
title: Storing Helm chart
type: helm
stage: deploy
working_directory: ./python-flask-sample-app
arguments:
action: push
chart_name: charts/python
helm_version: 3.0.2
kube_context: 'mydemoAkscluster@BizSpark Plus'
DeployMyChart:
type: helm
stage: deploy
working_directory: ./python-flask-sample-app
arguments:
action: install
chart_name: charts/python
release_name: my-python-chart
helm_version: 3.0.2
kube_context: 'mydemoAkscluster@BizSpark Plus'
custom_values:
- 'buildID=${{CF_BUILD_ID}}'
- 'image_pullPolicy=Always'
- 'image_repository=r.cfcr.io/kostis-codefresh/my-flask-app'
- 'image_tag=${{CF_BRANCH_TAG_NORMALIZED}}-${{CF_SHORT_REVISION}}'
- 'image_pullSecret=codefresh-generated-r.cfcr.io-cfcr-default'