File tree Expand file tree Collapse file tree 3 files changed +87
-59
lines changed
Expand file tree Collapse file tree 3 files changed +87
-59
lines changed Original file line number Diff line number Diff line change 1+ defaults : &defaults
2+ machine :
3+ services :
4+ - docker
5+ steps :
6+ - checkout
7+ - run :
8+ name : " Setup required directories"
9+ command : |
10+ mkdir -p /tmp/apache-cloudstack
11+ mkdir -p /tmp/.m2
12+ - restore_cache :
13+ key : repo-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-m2
14+ - run :
15+ name : " Build Docker image"
16+ command : make ${TAG}
17+ - run :
18+ name : " Test Docker image"
19+ command : |
20+ docker run \
21+ --volume /tmp/apache-cloudstack:/mnt/build \
22+ --volume /tmp/.m2:/root/.m2 \
23+ --rm \
24+ ${IMAGE}:${TAG} \
25+ --git-remote https://github.com/apache/cloudstack.git \
26+ --git-ref refs/heads/master \
27+ --remove-first \
28+ ${PARAMS}
29+ - save_cache :
30+ key : repo-{{ .Environment.CIRCLE_PROJECT_REPONAME }}-m2
31+ paths :
32+ - /tmp/.m2
33+
34+ version : 2
35+ jobs :
36+ ubuntu1404 :
37+ << : *defaults
38+ environment :
39+ IMAGE : khos2ow/cloudstack-deb-builder
40+ TAG : ubuntu1404
41+ PARAMS : " "
42+
43+ ubuntu1604 :
44+ << : *defaults
45+ environment :
46+ IMAGE : khos2ow/cloudstack-deb-builder
47+ TAG : ubuntu1604
48+ PARAMS : " "
49+
50+ ubuntu1804 :
51+ << : *defaults
52+ environment :
53+ IMAGE : khos2ow/cloudstack-deb-builder
54+ TAG : ubuntu1804
55+ PARAMS : " "
56+
57+ latest :
58+ << : *defaults
59+ environment :
60+ IMAGE : khos2ow/cloudstack-deb-builder
61+ TAG : latest
62+ PARAMS : " "
63+
64+ workflows :
65+ version : 2
66+ build :
67+ jobs :
68+ - ubuntu1404 :
69+ filters :
70+ tags :
71+ only : /v.*/
72+
73+ - ubuntu1604 :
74+ filters :
75+ tags :
76+ only : /v.*/
77+
78+ - ubuntu1804 :
79+ filters :
80+ tags :
81+ only : /v.*/
82+
83+ - latest :
84+ filters :
85+ tags :
86+ only : /v.*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# CloudStack DEB Package builder using Docker
22
3- [ ![ Build Status] ( https://travis-ci .com/khos2ow/cloudstack-deb-builder.svg?branch=master )] ( https://travis-ci .com/khos2ow/cloudstack-deb-builder )
3+ [ ![ CircleCI Build Status] ( https://circleci .com/gh/ khos2ow/cloudstack-deb-builder.svg?style=svg )] ( https://circleci .com/gh /khos2ow/cloudstack-deb-builder )
44[ ![ Docker Automated build] ( https://img.shields.io/docker/automated/khos2ow/cloudstack-deb-builder.svg )] ( https://hub.docker.com/r/khos2ow/cloudstack-deb-builder/ )
55[ ![ Docker Build Status] ( https://img.shields.io/docker/build/khos2ow/cloudstack-deb-builder.svg )] ( https://hub.docker.com/r/khos2ow/cloudstack-deb-builder/builds/ )
66[ ![ license] ( https://img.shields.io/github/license/khos2ow/cloudstack-deb-builder.svg )] ( https://github.com/khos2ow/cloudstack-deb-builder/blob/master/LICENSE )
You can’t perform that action at this time.
0 commit comments