Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Set deploy type in .travis.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Walach committed Oct 16, 2019
1 parent 71d228f commit 43fca6a
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .travis.yml
Expand Up @@ -28,7 +28,13 @@ before_install:
[[ -z "$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep -vE $DOCS_REGEX)" ]]
DOCS_ONLY=$?
fi
if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+[a-z]*((-beta.[0-9]+)|(-(r|R)(c|C)[0-9]+))?$ ]]; then
export DEPLOY_TYPE=release
elif [[ $TRAVIS_BRANCH == "master" ]]; then
export DEPLOY_TYPE=master
else
export DEPLOY_TYPE=none-$TRAVIS_TAG-$TRAVIS_BRANCH
fi
jobs:
fast_finish: true
include:
Expand Down Expand Up @@ -64,7 +70,7 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svc-cat-release.sh --arch amd64
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == release
- stage: deploy
Expand All @@ -75,7 +81,7 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svc-cat-release.sh --arch arm
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == release
- stage: deploy
Expand All @@ -86,7 +92,7 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svc-cat-release.sh --arch arm64
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == release
- stage: deploy
Expand All @@ -97,7 +103,7 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svc-cat-release.sh --arch ppc64le
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == release
- stage: deploy
Expand All @@ -108,23 +114,22 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svc-cat-release.sh --arch s390x
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == release
# Deploy service-catalog after merge to master
- stage: deploy
name: SC master - amd64
script: skip
if: $DEPLOY_TYPE == master
deploy:
skip_cleanup: true
provider: script
script: contrib/hack/ci/publish-svc-cat-master.sh
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
condition: $DEPLOY_TYPE == master
# Deploy svcat on release
# Deploy svcat on release
- stage: deploy
name: SVCAT
script: skip
Expand All @@ -133,7 +138,7 @@ jobs:
provider: script
script: contrib/hack/ci/publish-svcat-cli.sh
on:
repo: awalach-org/service-catalog
repo: kubernetes-sigs/service-catalog
all_branches: true
- stage: push-chart
script:
Expand Down

0 comments on commit 43fca6a

Please sign in to comment.