-
Notifications
You must be signed in to change notification settings - Fork 64
/
codefresh.yml
61 lines (55 loc) · 1.23 KB
/
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
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
58
59
60
version: "1.0"
stages:
- "clone"
- "unit"
- "build"
- "integration"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "codefreshdemo/demochat"
revision: "master"
stage: "clone"
build_dev_image:
title: "Building Dev image"
type: "build"
image_name: "codefreshdemo/demochat"
working_directory: "${{clone}}"
tag: "dev"
dockerfile: "Dockerfile.dev"
stage: "unit"
test:
title: "Running test"
type: "freestyle"
image: ${{build_dev_image}}
working_directory: /root/demochat
commands:
- 'npm run test'
stage: "unit"
build_image:
title: "Building App image"
type: "build"
image_name: "codefreshdemo/demochat"
working_directory: "${{clone}}"
tag: "dev"
dockerfile: "Dockerfile"
stage: "build"
integration_step:
type: composition
stage: 'integration'
composition:
version: '2'
services:
app:
image: ${{build_image}}
links:
- mongo
ports:
- 5000
mongo:
image: mongo
composition-candidates:
main:
image: nhoag/curl
command: bash -c "sleep 30 && curl http://app:5000/" | echo 'works'