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

Commit

Permalink
Publish helm-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardstudy authored and Mario Manno committed Mar 23, 2020
1 parent 9587574 commit 7bbbf78
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -119,6 +119,11 @@ jobs:
- cp helm/quarks-job*.tgz helm-charts/
- git tag -a $ARTIFACT_VERSION -m "tag $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
Expand Down
14 changes: 14 additions & 0 deletions bin/publish-helm-repo
@@ -0,0 +1,14 @@
#!/bin/bash

set -v

version=$ARTIFACT_VERSION

pushd updated
helm repo index .
git add .
git config --global user.name "CFContainerizationBot"
git config --global user.email "cfcontainerizationbot@cloudfoundry.org"
git commit -m "add quarks-job chart: $version"
git push
popd

0 comments on commit 7bbbf78

Please sign in to comment.