forked from GistIcon/pret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yml
45 lines (44 loc) · 918 Bytes
/
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
version: '1.0'
steps:
build_image:
type: build
description: Building the image...
image-name: myuser/myservice
tag: develop # ${{CF_BRANCH}}
perform_tests:
image: node:5
working_directory: ${{main_clone}}
description: Performing unit tests...
commands:
- npm install gulp -g
- npm install
- gulp unit_test
step_name:
type: build
title: Step Title
description: Free text description
working_directory: ${{clone_step_name}}
dockerfile: path/to/Dockerfile
image_name: owner/new-image-name
tag: develop
build_arguments:
- key=value
target: stage1
no_cache: false
no_cf_cache: false
fail_fast: false
metadata:
set:
- qa: pending
when:
condition:
all:
noDetectedSkipCI: "includes('${{CF_COMMIT_MESSAGE}}', '[skip ci]') == false"
on_success:
...
on_fail:
...
on_finish:
...
retry:
...