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-go.git
The following commit(s) were added to refs/heads/master by this push:
new 5a38cce Change the tag from golang1.11 to 1.11 for the kind (#93)
5a38cce is described below
commit 5a38cceb68c59c119d3e58e095f035497bcc059e
Author: Vincent <[email protected]>
AuthorDate: Tue Jun 18 14:46:36 2019 -0400
Change the tag from golang1.11 to 1.11 for the kind (#93)
---
.travis.yml | 2 +-
tools/travis/publish.sh | 10 +++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 7938e89..3a1a5a3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,7 +31,7 @@ deploy:
repo: apache/incubator-openwhisk-runtime-go
- provider: script
skip_cleanup: true
- script: "./tools/travis/publish.sh openwhisk golang1.11 latest"
+ script: "./tools/travis/publish.sh openwhisk 1.11 latest &&
./tools/travis/publish.sh openwhisk 1.12 latest"
on:
branch: master
repo: apache/incubator-openwhisk-runtime-go
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index 93da2b1..2e9170c 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -21,13 +21,21 @@ set -eux
# Build script for Travis-CI.
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} == "1.11" ]; then
+ RUNTIME="golang1.11"
+elif [ ${RUNTIME_VERSION} == "1.12" ]; then
+ RUNTIME="golang1.12"
+elif [ ${RUNTIME_VERSION} == "actionloop" ]; then
+ RUNTIME="actionloop"
+fi
+
if [[ ! -z ${RUNTIME} ]]; then
TERM=dumb ./gradlew \
:${RUNTIME}:distDocker \