File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 1
- sudo : required
1
+ env :
2
+ matrix :
3
+ - DIST=lenny
4
+ - DIST=etch
5
+ - DIST=squeeze
2
6
7
+ language : c
8
+ sudo : required
3
9
services :
4
10
- docker
5
11
6
12
before_install :
7
- - if [[ "${TRAVIS_BRANCH}" == "master" ]] ; then
8
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin ;
9
- fi
10
-
13
+ - source <(curl https://raw.githubusercontent.com/madworx/cd-ci-glue/master/src/cd-ci-glue.bash)
14
+
11
15
script :
12
- - for DIST in lenny etch squeeze ; do
13
- make DEBIAN_VERSION=${DIST} &&
14
- if [[ "${TRAVIS_BRANCH}" == "master" ]] ; then
15
- make DEBIAN_VERSION=${DIST} push ;
16
- fi
17
- done
16
+ - (make DEBIAN_VERSION=${DIST} &&
17
+ is_travis_master_push &&
18
+ echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin &&
19
+ make DEBIAN_VERSION=${DIST} push) || true
20
+
21
+ jobs :
22
+ include :
23
+ - stage : Publish project description to Docker hub
24
+ env : DIST
25
+ script :
26
+ - is_travis_master_push &&
27
+ dockerhub_set_description madworx/debian-archive README.md || true
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ CURRENTLAST="$(docker inspect --format='{{ index .Config.Labels "last_modified_s
20
20
21
21
if [ " x${CURRENTLAST} " == " x${LASTMOD} " ] ; then
22
22
echo " Rebuild not needed - upstream has last modification ${LASTMOD} ."
23
+ exit 1
23
24
else
24
25
#
25
26
# We cannot build in one step, since the debootstrap process needs
You can’t perform that action at this time.
0 commit comments