forked from codefresh-io/cf-docker-test-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh.yaml
33 lines (30 loc) · 693 Bytes
/
codefresh.yaml
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
version: '1.0'
steps:
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: codefresh/cf-docker-test-reporting
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
EsLint:
title: Run eslint
image: ${{BuildingDockerImage}}
commands:
- npm install
- npm run lint
UnitTest:
title: Run unit tests
image: ${{BuildingDockerImage}}
commands:
- npm install
- npm test
PushingToDockerRegistry:
title: Pushing to Docker Registry
type: push
candidate: '${{BuildingDockerImage}}'
tag: 'latest'
registry: dockerhub
when:
branch:
only:
- master