This is an automated email from the ASF dual-hosted git repository.
dgrove pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-php.git
The following commit(s) were added to refs/heads/master by this push:
new b0834a5 Fix travis publish 72 (#32)
b0834a5 is described below
commit b0834a56d1d2e3bb9b65634c0db2e6a9a920dd93
Author: Carlos Santana <[email protected]>
AuthorDate: Wed Jun 20 15:39:16 2018 -0400
Fix travis publish 72 (#32)
---
.travis.yml | 5 +++++
tools/travis/publish.sh | 10 ++--------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index aef492e..9e2ac3e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,6 +31,11 @@ deploy:
on:
branch: master
repo: apache/incubator-openwhisk-runtime-php
+ - provider: script
+ script: "./tools/travis/publish.sh openwhisk 7.2 master"
+ on:
+ branch: master
+ repo: apache/incubator-openwhisk-runtime-php
env:
global:
- secure:
AJZRyRO/ZkStfywAZVN8bk1YmQLHOTD37QdjBsw77CdqnW9Y+a7V3+wZD3W+obQrEhNR9spkKlMh+biE2HFoRwr/AZ3Pl0frzhlyzZXaLUgJMK7wfQzuFVVgjODs4ld2PrJRv5LibFwco9cosDYHe9xlqQ+/Yg/QaWZPK0rBS1UFBxHh1cOcIJ0N80vDXgZbqmH9nuE7W5GvNGzDg9p16w+u48a6UF7UVzf+RU/uR13q7LrAq/FD7dtdiHpamIw4MiGWhW/GZQrwZpzovfGFr365uEVWu+ssQJld+sbeVoN9ED6kOrfYTFg+l7+8cvjhkZ9LUWELK/zVFCu4wYmuhk6utUreBD5rzsfVQmt0Ups7ANIqVS0874CW6WdxO+wPx5Me5k3azXbLgk6mPt4hL0+nlUZ1ycP2rEN/RnL2r8UJAN3vdvL1nXrTTulwNLwS8U3Lc+4yEV+YHQR9c9pYdw3VPx1vNVjE
[...]
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
index 1166a51..dfd5ab3 100755
--- a/tools/travis/publish.sh
+++ b/tools/travis/publish.sh
@@ -30,19 +30,13 @@ IMAGE_PREFIX=$1
RUNTIME_VERSION=$2
IMAGE_TAG=$3
-if [ ${RUNTIME_VERSION} == "7" ]; then
- RUNTIME="php7Action"
-elif [ ${RUNTIME_VERSION} == "7.1" ]; then
- RUNTIME="php7.1Action"
-fi
-
if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
fi
-if [[ ! -z ${RUNTIME} ]]; then
+if [[ ! -z ${RUNTIME_VERSION} ]]; then
TERM=dumb ./gradlew \
-:core:${RUNTIME}:distDocker \
+:core:php${RUNTIME_VERSION}Action:distDocker \
-PdockerRegistry=docker.io \
-PdockerImagePrefix=${IMAGE_PREFIX} \
-PdockerImageTag=${IMAGE_TAG}