forked from dockersamples/example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 26
/
codefresh.all.yml
55 lines (44 loc) · 1.5 KB
/
codefresh.all.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
48
49
50
51
52
53
54
55
version: '1.0'
#build all
steps:
#build all the images
build_image_vote:
title: Building Voting Image
type: build
#Important: rename this image to to a valid repository in your registry. For example: myUserName/vote
image_name: containers101/vote
#The directory should be relative to git repository that is used for cloning
working_directory: ./vote/
#Dockerfile location should be relative to the working directory
dockerfile: Dockerfile
build_image_result:
title: Building Result Image
type: build
image_name: containers101/result
working_directory: ./result/
dockerfile: Dockerfile
build_image_worker:
title: Building Worker Image
type: build
image_name: containers101/worker
working_directory: ./worker/
dockerfile: Dockerfile
#Push all the images
push_to_registry_vote:
title: Pushing to Vote Docker Registry
type: push
#A candidate is the image that we want to push to registry
candidate: '${{build_image_vote}}'
# You can push the image with whatever tag you want. In our example we use CF_BRANCH, which is a variable in
# the build process, accessible throughout the entire flow.
tag: '${{CF_BRANCH}}'
push_to_registry_result:
title: Pushing to Result Docker Registry
type: push
candidate: '${{build_image_result}}'
tag: '${{CF_BRANCH}}'
push_to_registry_worker:
title: Pushing to Worker Docker Registry
type: push
candidate: '${{build_image_worker}}'
tag: '${{CF_BRANCH}}'