Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Only deploy to helm repo
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardstudy committed Mar 24, 2020
1 parent 7bbbf78 commit 9454be8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
34 changes: 17 additions & 17 deletions .travis.yml
Expand Up @@ -10,6 +10,9 @@ cache:
services:
- docker

git:
depth: false

env:
global:
- GOPROXY="https://proxy.golang.org"
Expand Down Expand Up @@ -113,21 +116,18 @@ jobs:
- sudo ./get_helm.sh
script: echo "Publishing helm chart"
before_deploy:
- . bin/include/versioning
- ./bin/build-helm
- mkdir helm-charts
- cp helm/quarks-job*.tgz helm-charts/
- git tag -a $ARTIFACT_VERSION -m "tag $ARTIFACT_VERSION"
- . bin/include/versioning
- ./bin/build-helm
- mkdir helm-charts
- cp helm/quarks-job*.tgz helm-charts/
- git tag -a $ARTIFACT_VERSION -m "tag $ARTIFACT_VERSION"
- export ARTIFACT_VERSION=$ARTIFACT_VERSION
deploy:
- provider: script
script: git clone https://CFContainerizationBot:$GITHUB_TOKEN@github.com/cloudfoundry-incubator/quarks-helm.git ./updated/ && cp helm-charts/quarks-job*.tgz updated/ && ./bin/publish-helm-repo
skip_cleanup: true
on:
branch: master
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: "helm-charts/quarks-job*.tgz"
skip_cleanup: true
on:
branch: master
- provider: script
script:
git clone https://CFContainerizationBot:$GITHUB_TOKEN@github.com/cloudfoundry-incubator/quarks-helm.git ./updated/ &&
cp helm-charts/quarks-job*.tgz updated/ &&
./bin/publish-helm-repo
skip_cleanup: true
on:
branch: master
1 change: 0 additions & 1 deletion bin/publish-helm-repo
@@ -1,6 +1,5 @@
#!/bin/bash

set -v

version=$ARTIFACT_VERSION

Expand Down

0 comments on commit 9454be8

Please sign in to comment.