-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefresh.yml
More file actions
57 lines (51 loc) · 1.56 KB
/
codefresh.yml
File metadata and controls
57 lines (51 loc) · 1.56 KB
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
48
49
50
51
52
53
54
55
56
# More examples of Codefresh YAML can be found at
# https://codefresh.io/docs/docs/yaml-examples/examples/
version: "1.0"
# Stages can help you organize your steps in stages
stages:
- "clone"
- "buildTest"
- "IntegrationTest"
- "finalBuild"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "oregondesignservices/MorphicLiteServer"
# CF_BRANCH value is auto set when pipeline is triggered
# Learn more at codefresh.io/docs/docs/codefresh-yaml/variables/
revision: "${{CF_BRANCH}}"
git: "github"
stage: "clone"
buildTest:
title: "Building Final Docker Image"
type: "build"
image_name: "oregondesignservices/MorphicLiteServerBuildEnv"
working_directory: "${{clone}}"
tag: "${{CF_BRANCH_TAG_NORMALIZED}}"
dockerfile: "Dockerfile"
target: "build-env"
IntegrationTest:
type: composition
title: Integration Test
description: Test with Mongo
working_directory: "${{clone}}"
composition:
version: '2'
services:
mongo:
image: mongo
composition_candidates:
morphicServer:
image: "oregondesignservices/MorphicLiteServerBuildEnv:${{CF_BRANCH_TAG_NORMALIZED}}"
command: dotnet test
environment:
APPSETTINGS_FILENAME: "appsettings.Integration.json"
composition_variables: []
finalBuild:
title: "Building Final Docker Image"
type: "build"
image_name: "oregondesignservices/MorphicLiteServer"
working_directory: "${{clone}}"
tag: "${{CF_BRANCH_TAG_NORMALIZED}}"
dockerfile: "Dockerfile"