Skip to content

Commit 30176da

Browse files
New pipeline template with explicit clone step.
1 parent ba1cd68 commit 30176da

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

codefresh.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
MyAppDockerImage:
14+
title: Building Docker Image
15+
type: build
16+
stage: build
17+
image_name: my-app-image
18+
working_directory: ./
19+
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
20+
dockerfile: Dockerfile
21+
MyUnitTests:
22+
title: Running Unit tests
23+
stage: test
24+
image: '${{MyAppDockerImage}}'
25+
commands:
26+
- python setup.py test

0 commit comments

Comments
 (0)