-
Notifications
You must be signed in to change notification settings - Fork 8
/
codefresh.yml
46 lines (46 loc) · 1.08 KB
/
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"
stages:
- prepare
- build
- test
steps:
main_clone:
type: "git-clone"
description: "Cloning main repository..."
repo: "codefreshdemo/cf-example-integration-tests"
revision: "master"
git: github
stage: prepare
build_app_image:
title: "Building Docker Image"
type: "build"
image_name: "my-spring-app"
tag: "master"
dockerfile: "Dockerfile"
stage: build
build_test_image:
title: "Building Docker Test Image"
type: "build"
image_name: "my-junit-spock-tests"
tag: "master"
dockerfile: "Dockerfile.testing"
stage: test
run_integration_tests:
title: "Running integration tests"
stage: test
image: '${{build_test_image}}'
commands:
# Tomcat is certainly up at this point
- mvn verify -Dserver.host=app
services:
composition:
app:
image: '${{build_app_image}}'
ports:
- 8080
readiness:
timeoutSeconds: 30
periodSeconds: 15
image: byrnedo/alpine-curl
commands:
- "curl http://app:8080/wizard/"