-
Notifications
You must be signed in to change notification settings - Fork 1
/
codefresh.yml
46 lines (42 loc) · 914 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
46
version: "1.0"
steps:
Build:
title: Docker Image Build
type: build
image_name: hope/alpine
working_directory: ./
dockerfile: Dockerfile
Test:
title: Running Tests
image: "${{Build}}"
working_directory: IMAGE_WORK_DIR
commands:
- "echo -n 'Apline release version: '"
- "cat /etc/alpine-release"
- "date"
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:
- "3.6"