Fix publish.sh ARCH error (#1860)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-12-27 07:47:20 -03:00 committed by GitHub
parent 5c304cb032
commit 85d97df583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 15 deletions

View file

@ -55,31 +55,21 @@ jobs:
# split builds to avoid job timeouts # split builds to avoid job timeouts
- stage: publish amd64 - stage: publish amd64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
env:
- ARCH=amd64
script: script:
- travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh - travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh amd64
- stage: publish arm - stage: publish arm
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
env:
- ARCH=arm
script: script:
- travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh - travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh arm
- stage: publish arm64 - stage: publish arm64
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
env:
- ARCH=arm64
script: script:
- travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh - travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh arm64
- stage: publish ppc64le - stage: publish ppc64le
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
env:
- ARCH=ppc64le
script: script:
- travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh - travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh ppc64le
- stage: publish s390x - stage: publish s390x
if: type = api AND branch = master AND repo = kubernetes/ingress-nginx if: type = api AND branch = master AND repo = kubernetes/ingress-nginx
env:
- ARCH=s390x
script: script:
- travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh - travis_wait ${TRAVIS_TIMEOUT} .travis/publish.sh s390x

View file

@ -21,6 +21,11 @@ source $DIR/common.sh
echo "Login to quay.io..." echo "Login to quay.io..."
docker login --username=$QUAY_USERNAME --password=$QUAY_PASSWORD quay.io >/dev/null 2>&1 docker login --username=$QUAY_USERNAME --password=$QUAY_PASSWORD quay.io >/dev/null 2>&1
if [ $# -eq "1" ]
then
export ARCH=$1
fi
case "$COMPONENT" in case "$COMPONENT" in
"ingress-controller") "ingress-controller")
$DIR/ingress-controller.sh $DIR/ingress-controller.sh