forked from codefresh-contrib/gradle-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codefresh-package-only.yml
34 lines (34 loc) · 947 Bytes
/
codefresh-package-only.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
version: '1.0'
stages:
- prepare
- test
- package
- build
steps:
main_clone:
title: Cloning main repository...
stage: prepare
type: git-clone
repo: 'codefresh-contrib/gradle-sample-app'
revision: master
git: github
MyUnitTests:
title: Compile/Unit test
stage: test
image: gradle:4.7.0-jdk8-alpine
commands:
- gradle test --no-daemon --build-cache --gradle-user-home=/codefresh/volume/.gradle -Dmaven.repo.local=/codefresh/volume/m2
BuildMyJar:
title: Packaging Jar file
stage: package
image: gradle:4.7.0-jdk8-alpine
commands:
- gradle build --no-daemon --build-cache --gradle-user-home=/codefresh/volume/.gradle -Dmaven.repo.local=/codefresh/volume/m2
MyAppDockerImage:
title: Building Docker Image
type: build
stage: build
image_name: gradle-sample-app
working_directory: ./
tag: 'non-multi-stage'
dockerfile: Dockerfile.only-package