openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From berst...@apache.org
Subject [incubator-openwhisk-package-kafka] branch master updated: update travis deployment (#172)
Date Tue, 09 May 2017 19:11:02 GMT
This is an automated email from the ASF dual-hosted git repository.

berstler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-kafka.git

The following commit(s) were added to refs/heads/master by this push:
       new  8613585   update travis deployment (#172)
8613585 is described below

commit 8613585a523eeb719ace29248cfe9c236a486a42
Author: Carlos Santana <csantana23@gmail.com>
AuthorDate: Tue May 9 15:10:58 2017 -0400

    update travis deployment (#172)
---
 .travis.yml            | 22 +++++++++++++++++++---
 README.md              |  1 +
 tools/travis/deploy.sh | 15 +++++++++++++++
 3 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8e075c1..8c08949 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,14 +5,30 @@ sudo: required
 language: scala
 scala:
    - 2.11.6
-
+env:
+  global:
+    - secure: "mBHstQIJFTt7klYxMR+GLQ97YA2jDgOVd4vBOCj6clugG6ujKvV0716r3U//4/qI0D7tu0EfSnGTs3xJkSx4Ctfz2xGfAA2leEmZJSoOxcvlayWu41+QLvH4ZCbBBchifvpHR1z2ilZF0owtwo3wlDL51zn+rxx/zmA6daesW7ggG15+uron+d1esbT9nEQVZfIVGOyK6vgcuF4kMPR181p07khG7jbRnH6F3hlox2el3t0ftRZJcADWqlSgNfv1EwCQBbhi/POTNeYbapLxwWhPbgNDHzAYvJrCTWj1M9/6wewp6q1rlDwsukRQA9zVbvjXqf+JCQYoWTsoamj3LARmsUKWLsU9+wOUxwiyZwZNXYGTke7eVvoQv3D+8Zsfv+LGNoYwCaNz5+IX5BdTDi4gIPNyulYanSh7UPG05tHXCXHXVEBPXubxEmXjNvVS9BC2YozSW6GMEyaRSh5lS2Ae9VuLF
[...]
+    - secure: "cZijVhCVtuBSAH/EpjIxfXSjZGjRULM5UYyvKkDZx/FqMd47K0+xzDWIfizowvFa4bGjU2JgjklmlERdF/P3Xp34UDciLvt7q274G8Rqnlq52KMM56iL/LbkeISeaRgbN7lWq+XZnkRDojAIrM67HUn9lsYs4SXAY8HCBXPnzhLN8dRE7BbEGKjQJceUQMxKNfiCVJ7r29qFXbdtjMQ8ea6lHJkczUaLKEFWYGpqIGXJMYAhDGd54OuwqrjOQR1AtNGjyEy1yJRoexKemfrvYl2kUuH6qtJwQv4dQMpSOkVtHOISoiIyHjsxYnCGgKnrLRz+R2F9I1PFxZaVlJEMrG3bc7CDZbXowcnmNEy5FxdAoxgxaTWZwO8mVRnaY/u5hEOkz23Hm/Kmkq5d17XThSrwQh9GG3DZMGabINwo05yAKjSmFV1wbWZmIYzU2ls1H2P+T833TkYqV5PQfOXYFfpV7jrBT
[...]
 services:
   - docker
 
-install: true
-
 before_install:
   - ./tools/travis/setup.sh
 
+install: true
+
 script:
   - ./tools/travis/build.sh
+
+deploy:
+  # deploy latest
+  - provider: script
+    script: ./tools/travis/deploy.sh openwhisk kafkaprovider latest
+    on:
+      branch: master
+  # deploy tag
+  - provider: script
+    script: ./tools/travis/deploy.sh openwhisk kafkaprovider $TRAVIS_TAG
+    on:
+      tags: true
+      all_branches: true
\ No newline at end of file
diff --git a/README.md b/README.md
index 7447bc2..049e954 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
 # OpenWhisk package for communication with Kafka or IBM Message Hub
+[![Build Status](https://travis-ci.org/apache/incubator-openwhisk-package-kafka.svg?branch=master)](https://travis-ci.org/apache/incubator-openwhisk-package-kafka)
 
 This project is an OpenWhisk package that allows you to communicate with Kafka or IBM Message
Hub instances for publishing and consuming messages using native high performance Kafka API.
 
diff --git a/tools/travis/deploy.sh b/tools/travis/deploy.sh
new file mode 100755
index 0000000..6451c37
--- /dev/null
+++ b/tools/travis/deploy.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -eu
+
+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}"
+
+echo docker build . --tag ${dockerhub_image}
+docker build . --tag ${dockerhub_image}
+
+echo docker push ${dockerhub_image}
+docker push ${dockerhub_image}

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message