-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcodefresh-template-prod.yaml
57 lines (57 loc) · 1.62 KB
/
codefresh-template-prod.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "1.0"
stages:
- prepare
- deploy
steps:
main_clone:
title: Clone main repository
type: git-clone
stage: prepare
repo: "${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}"
revision: "${{CF_BRANCH}}"
git: github
post_main_clone:
title: Post main clone
type: parallel
stage: prepare
steps:
clone_cloud_harness:
title: Cloning cloud-harness repository...
type: git-clone
stage: prepare
repo: "https://github.com/MetaCell/cloud-harness.git"
revision: "${{CLOUDHARNESS_BRANCH}}"
working_directory: .
git: github
prepare_deployment:
title: "Prepare helm chart"
image: python:3.12
stage: prepare
working_directory: .
commands:
- bash cloud-harness/install.sh
- harness-deployment $PATHS -t ${{DEPLOYMENT_TAG}} -d ${{DOMAIN}} -r ${{REGISTRY}} -rs ${{REGISTRY_SECRET}} -n ${{NAMESPACE}} -e $ENV $PARAMS
prepare_deployment_view:
commands:
- "helm template ./deployment/helm --debug -n ${{NAMESPACE}}"
environment:
- ACTION=auth
- KUBE_CONTEXT=${{NAMESPACE}}
image: codefresh/cfstep-helm:3.6.2
stage: prepare
title: "View helm chart"
deployment:
stage: deploy
type: helm
working_directory: ./${{CF_REPO_NAME}}
title: Installing chart
arguments:
helm_version: 3.6.2
chart_name: deployment/helm
release_name: ${{NAMESPACE}}
kube_context: ${{CLUSTER_NAME}}
namespace: ${{NAMESPACE}}
chart_version: ${{DEPLOYMENT_TAG}}
cmd_ps: --wait --timeout 600s --create-namespace
custom_value_files:
- ./deployment/helm/values.yaml