From 878f44744e70503977a3be84244e8070d2d6290b Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 26 Nov 2019 11:45:53 +0100 Subject: [PATCH] docker release build --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index f87ac17..cc520dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ jobs: - cd static/js && jshint - stage: dockerhub push + if: tag IS NOT present language: ruby services: - docker @@ -30,6 +31,17 @@ jobs: - docker login -u $DOCKER_USER -p $DOCKER_PASS - docker push buckaroobanzay/mapserver + - stage: dockerhub push tag + if: tag IS present + language: ruby + services: + - docker + script: + - docker build -t buckaroobanzay/mapserver:latest . + - docker tag buckaroobanzay/mapserver:latest buckaroobanzay/mapserver:$TRAVIS_TAG + - docker login -u $DOCKER_USER -p $DOCKER_PASS + - docker push buckaroobanzay/mapserver + env: global: - secure: inZHDCtFNXwlvNld6E95uh4rbDUwHswbPu4vtiYT+6hB3FNYDXST7Ss+nngzorQZpxlnR8w1sP+haek9cFBS7vaYJpzNNIIKOyikHKiUOzOzsf8SH3FbFteg+2w+mEIwG7ngh15mtqQBQgji6bEhVkBtd4D2N0PUTAJPsqjRFB+KonhxrDrpu6lkgTGXgDxs/SakOXvZ4EGE6O9BHAk0lYUPQyCh4H10HV2fuyGRafAy8FVAf8y83asED20OMplCnKzlKKtY77fp7FIfZblSsyXdOiRgmO4OYbBNhm2AvSYwW5N8hg1ebreyr5AmmrPEjiMcMUfynSw3B90zfeIZvMin21pfd5+LBcDIFPWnUdplOMeSKCWgVvvImTFg8atFYBSrcBFnibwSbYvSevvI5V3oj9JOuhU2QqzCyqOFli6oTf6dJEep/+flKT9z8I4HmMJFPFL79tU/WGafv4moVBtGhQcCZxcFe+MYwBvRgtpA7by70/GU2CrvpS2zAOJIKrM5lwyxhXp0csbXEJm7/CEP/1fcq5SsI9GIfC2rgx3RcjeAxBf2vWx61kPbMYJyHdihXX1sax4YUzIUN4Mnxdl2YGveyYIPIn2+Ko2XfvIrcBkz/pxopqWMwS2ChQkeGqhrKhP400m2jhoALXPE0qavCDn9pQBoDTuI5JrkENM=