-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodefresh.yml
More file actions
47 lines (43 loc) · 924 Bytes
/
codefresh.yml
File metadata and controls
47 lines (43 loc) · 924 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
42
43
44
45
46
47
version: "1.0"
steps:
Build:
title: Docker Image Build
type: build
image_name: hope/nodejs
working_directory: ./
dockerfile: Dockerfile
Test:
title: Running Tests
image: "${{Build}}"
working_directory: IMAGE_WORK_DIR
commands:
- "echo -n 'NodeJS version: '"
- "node -v"
- "echo -n 'NPM version: '"
- "npm -v"
on_success:
metadata:
set:
- "${{Build.imageId}}":
- CF_QUALITY: true
on_fail:
metadata:
set:
- "${{Build.imageId}}":
- CF_QUALITY: false
Push:
title: Pushing to Docker Hub
type: push
candidate: "${{Build}}"
tag: "${{CF_BRANCH}}"
registry: dockerhub
PushLatest:
title: Pushing latest to Docker Hub
type: push
candidate: "${{Build}}"
tag: latest
registry: dockerhub
when:
branch:
only:
- "6"