diff --git a/.travis.yml b/.travis.yml index 7f9d4b69c..6d0e221e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,36 +44,37 @@ jobs: script: - make cover - stage: e2e + if: env(COMPONENT) != "docs" before_script: - test/e2e/up.sh script: - make e2e-test # split builds to avoid job timeouts - 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 AND env(COMPONENT) = "ingress-controller" script: - .travis/publish.sh amd64 - 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 AND env(COMPONENT) = "ingress-controller" script: - make register-qemu - .travis/publish.sh arm - 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 AND env(COMPONENT) = "ingress-controller" script: - make register-qemu - .travis/publish.sh arm64 - 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 AND env(COMPONENT) = "ingress-controller" script: - make register-qemu - .travis/publish.sh ppc64le - 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 AND env(COMPONENT) = "ingress-controller" script: - make register-qemu - .travis/publish.sh s390x - stage: Publish docs - if: type = api AND branch = master AND repo = kubernetes/ingress-nginx + if: type = api AND branch = master AND repo = kubernetes/ingress-nginx AND env(COMPONENT) = "docs" script: - .travis/publish-docs.sh diff --git a/.travis/publish.sh b/.travis/publish.sh index ecfcba978..0bbe4ddb2 100755 --- a/.travis/publish.sh +++ b/.travis/publish.sh @@ -38,9 +38,6 @@ case "$COMPONENT" in "ingress-controller") $DIR/ingress-controller.sh ;; -"nginx") - $DIR/nginx.sh - ;; *) echo "Invalid option in environment variable COMPONENT" exit 1