You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2017/10/21 00:18:17 UTC
[incubator-openwhisk-deploy-kube] branch master updated: add
publish to travis for kube-couchdb (#74)
This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git
The following commit(s) were added to refs/heads/master by this push:
new cf0d9ba add publish to travis for kube-couchdb (#74)
cf0d9ba is described below
commit cf0d9badd60d9a49f031c63b15b4b59c6d223b6b
Author: Carlos Santana <cs...@gmail.com>
AuthorDate: Fri Oct 20 20:18:15 2017 -0400
add publish to travis for kube-couchdb (#74)
---
.travis.yml | 25 ++++++++++++++-----------
tools/travis/publish.sh | 11 +++++++++++
2 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 73b172f..c56e3a2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,20 @@
sudo: required
-
env:
global:
- - TRAVIS_KUBE_VERSION=v1.6.2
- - TRAVIS_ETCD_VERSION=v3.0.17
-
+ - TRAVIS_KUBE_VERSION=v1.6.2
+ - TRAVIS_ETCD_VERSION=v3.0.17
+ - secure: d7CuMXbhT83W2x78qiLwgogX1+3aPicd1PlTwwNNDN6QSkImbxareyKThnsqlHIiNj3o5l5DBuiYjy7wrF/xD1g8BQMmTwm99DRx5q3CI3Im3VCi/ZK8SaNjuOy24d7cf5k2tB/87Gk7zmKsMDYm+fpCl+GpgUmIEeIwthiAxuXSDWZ8eQPIptmxj56DeFRNouvXG+dEUtBfWiwN27UPxNKExCixFnegmdtffLbz6hhst7BHr5Ry9acbycre98PCwWZcu9lxFs+SJ1kvnzX2iue4otmDkF1WkJjxaOFPJVs/D3YItg+neLCSxjwBskPed+Fct8bOjcM/uVROJPNIq5icBmaPX2isH0lvtxOeVw/dmioWYXYPN9ygBOe4eO/vtPllN0bcAUo5xl9jXev8ciAozYrYpHVh9Fplfd81rcYTeYzALmRJBdoiWoc3KQGzwGc9sB1ffmy+KWgG9T0zbnS4fALSR4PS [...]
+ - secure: CJtnU94HTDqd4A6uvhFl8IpnmU+wTdlzb8bPBFUl/lI/VKXiRrYpgJdKUro5xEoxFKuqMprLhbyf66niyWLTIeogjUAEu/h/o2dBVeGgSGKoqC0hQgqvnxKFeGlzFJ0XuEs3vbStJGRnQszGsfnnDrscJtR0x9X+1w4aBKI7iPyyuFtVkDD1UsmBbSi+M8FTeq7G7A0reMDaey7uog3CFCpIMl4geshcohQEcKEGbnXQZoLPFpb7cBOE83VXBJ7Y7Dgf/U4keiLovvnuJThGKZm/SVV2KlELmBmtmbx3rMT6Vb5k9ChSdRWapromNnnzmJBIQ5Scc2mwV3A93/SMha1F3IlYpDKs5djfTw8jZfVnuiou7HhTaRjHkmmcwP12/k30gLe2kw0Vezg1TCY4zgtOpcmCxc8RHEy0ceA74rKvRi8LbexTCwX+iAMQFn/pSrh/OqAq/50JbLyczcoO1zXWS38txUQN [...]
services:
- - docker
-
+- docker
before_install:
- - ./tools/travis/setupscan.sh
- - ./tools/travis/setup.sh
-
+- "./tools/travis/setupscan.sh"
+- "./tools/travis/setup.sh"
script:
- - ./tools/travis/scancode.sh
- - ./tools/travis/build.sh
+- "./tools/travis/scancode.sh"
+- "./tools/travis/build.sh"
+deploy:
+- provider: script
+ script: "./tools/travis/publish.sh openwhisk kube-couchdb latest"
+ on:
+ branch: master
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
new file mode 100755
index 0000000..9eb899f
--- /dev/null
+++ b/tools/travis/publish.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -exu
+
+dockerhub_image_prefix="$1"
+dockerhub_image_name="$2"
+dockerhub_image_tag="$3"
+dockerhub_image="${dockerhub_image_prefix}/${dockerhub_image_name}:${dockerhub_image_tag}"
+
+docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
+docker build kubernetes/couchdb/docker --tag ${dockerhub_image}
+docker push ${dockerhub_image}
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].