Skip to content

Commit 82a8522

Browse files
Create codefresh.yml
1 parent 9dc1732 commit 82a8522

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

codefresh.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '1.0'
2+
stages:
3+
- prepare
4+
- build
5+
- test
6+
steps:
7+
main_clone:
8+
title: Cloning main repository...
9+
type: git-clone
10+
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
11+
revision: '${{CF_REVISION}}'
12+
stage: prepare
13+
git: github
14+
MyAppDockerImage:
15+
title: Building Docker Image
16+
type: build
17+
stage: build
18+
image_name: my-app-image
19+
working_directory: ./
20+
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
21+
dockerfile: Dockerfile
22+
MyUnitTests:
23+
title: Running Unit tests
24+
stage: test
25+
image: '${{MyAppDockerImage}}'
26+
commands:
27+
- npm run test

0 commit comments

Comments
 (0)