File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,21 @@ DOCKER_IMAGE_COMMIT=$DOCKER_IMAGE:$DOCKER_TAG
15
15
DOCKER_IMAGE_LATEST=$DOCKER_IMAGE :latest
16
16
DOCKER_IMAGE_PROD=$DOCKER_IMAGE :prod
17
17
18
+ function hello() {
19
+ for (( c= 1 ; c<= 3 ; c++ )) ; do
20
+ sleep 120
21
+ echo " hello, travis"
22
+ done
23
+ }
24
+
18
25
if [ -z $TRAVIS_TAG ]; then
19
26
# Build image
20
- echo Building OTP
27
+ echo Building OTP
21
28
docker build --tag=" $ORG /$DOCKER_IMAGE :builder" -f Dockerfile.builder .
22
29
mkdir export
23
30
docker run --rm --entrypoint tar " $ORG /$DOCKER_IMAGE :builder" -c target| tar x -C ./
31
+ # package OTP quietly while keeping travis happpy
32
+ hello &
24
33
docker build --tag=" $DOCKER_IMAGE_COMMIT " -f Dockerfile .
25
34
fi
26
35
@@ -31,7 +40,7 @@ if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
31
40
docker pull $DOCKER_IMAGE_COMMIT
32
41
docker tag $DOCKER_IMAGE_COMMIT $DOCKER_IMAGE_PROD
33
42
docker push $DOCKER_IMAGE_PROD
34
- else
43
+ else
35
44
echo " Pushing latest image"
36
45
docker push $DOCKER_IMAGE_COMMIT
37
46
docker tag $DOCKER_IMAGE_COMMIT $DOCKER_IMAGE_LATEST
You can’t perform that action at this time.
0 commit comments