This is an automated email from the ASF dual-hosted git repository.
houshengbo pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-ruby.git
The following commit(s) were added to refs/heads/master by this push:
new bb261e4 Change the tag format from ruby2.5Action to 2.5 (#22)
bb261e4 is described below
commit bb261e470d393163017888e0d40188190439c17a
Author: Vincent <[email protected]>
AuthorDate: Tue Jun 18 15:51:16 2019 -0400
Change the tag format from ruby2.5Action to 2.5 (#22)
---
.travis.yml | 7 +------
tools/travis/publish.sh | 8 +++++++-
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 4909a5f..0aa6c42 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,12 +22,7 @@ deploy:
all_branches: true
repo: apache/incubator-openwhisk-runtime-ruby
- provider: script
- script: "./tools/travis/publish.sh openwhisk ruby2.5Action latest"
- on:
- branch: master
- repo: apache/incubator-openwhisk-runtime-ruby
-- provider: script
- script: "./tools/travis/publish.sh openwhisk ruby2.6ActionLoop latest"
+ script: "./tools/travis/publish.sh openwhisk 2.5 latest &&
./tools/travis/publish.sh openwhisk 2.6 latest"
on:
branch: master
repo: apache/incubator-openwhisk-runtime-ruby
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index 9e66d40..4d0330b 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -27,13 +27,19 @@ WHISKDIR="$ROOTDIR/../openwhisk"
export OPENWHISK_HOME=$WHISKDIR
IMAGE_PREFIX=$1
-RUNTIME=$2
+RUNTIME_VERSION=$2
IMAGE_TAG=$3
if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
fi
+if [ ${RUNTIME_VERSION} == "2.5" ]; then
+ RUNTIME="ruby2.5Action"
+elif [ ${RUNTIME_VERSION} == "2.6" ]; then
+ RUNTIME="ruby2.6ActionLoop"
+fi
+
if [[ ! -z ${RUNTIME} ]]; then
TERM=dumb ./gradlew \
:core:${RUNTIME}:distDocker \