forked from ben-tmp/demochat
-
Notifications
You must be signed in to change notification settings - Fork 183
/
codefresh_vars.yml
47 lines (44 loc) · 1.2 KB
/
codefresh_vars.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
version: '1.0'
steps:
retrieve-git-hash:
description: retrive git tag
title: Free styling 2
image: bravissimolabs/alpine-git
commands:
- echo $(git rev-parse --short=5 HEAD)
- export GIT_HASH=$(git rev-parse --short=5 HEAD)
- cf_export GIT_TAG=$GIT_HASH
test-git-hash:
description: retrive git tag!
title: Free styling 2
image: ubuntu:latest
commands:
- echo $GIT_TAG
build_step:
title: Build
type: build
dockerfile: Dockerfile
image_name: containers101/demochat
tag: '${{CF_BRANCH}}'
tag:
type: push
title: add version
description: Free text description
candidate: ${{build_step}}
tag: ${{GIT_TAG}}
image_name: verchol/demochat
registry : dockerhub
deploy_to_kubernetes:
image: codefresh/cf-deploy-kubernetes
tag: latest
commands:
- /cf-deploy-kubernetes deployment.yml
environment:
- KUBERNETES_USER=${{KUBERNETES_USER}}
- KUBERNETES_PASSWORD=${{KUBERNETES_PASSWORD}}
- KUBERNETES_SERVER=${{KUBERNETES_SERVER}}
- DOCKER_IMAGE_TAG=${{CF_BRANCH}}
when:
condition:
all:
deploy_to_kubernetes: '"${{DEPLOY_KUBERNETES}}" == "true"'