-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcodefresh.yml
More file actions
41 lines (38 loc) · 931 Bytes
/
codefresh.yml
File metadata and controls
41 lines (38 loc) · 931 Bytes
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
version: '1.0'
steps:
build-image:
type: build
description: codefresh example
image-name: codefreshexamples/ping-server
tag: latest
metadata:
set:
- commit_url: '${{CF_COMMIT_URL}}'
- note: 'codefresh metadata example'
perform_tests:
image: ${{build-image}}
working_directory: IMAGE_WORK_DIR
description: Performing unit tests...
commands:
- yarn test:ci
environments:
- CF_VOLUME_PATH=${{CF_VOLUME_PATH}}
on_success:
metadata:
set:
- '${{build-image.imageId}}':
- CF_QUALITY: true
on_fail:
metadata:
set:
- '${{build-image.imageId}}':
- CF_QUALITY: false
new_step:
image: alpine
commands:
- echo Test coverage at ${{COVERAGE}}
on_finish:
metadata:
set:
- '${{build-image.imageId}}':
- coverage: ${{COVERAGE}}