Fix bugs in CI set-up. (#144)

pull/146/head
Alex Collins 2019-10-31 11:28:02 -07:00 committed by GitHub
parent fc783d79d5
commit ed127ea795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -21,10 +21,13 @@ jobs:
- run: helm init --client-only
# Only actually publish charts on master.
- run: |
set -x
if [ "$CIRCLE_BRANCH" = "master" ]; then
echo 'export GIT_PUSH=true' >> $BASH_ENV
export GIT_PUSH=true
else
export GIT_PUSH=false
fi
- run: sh ./scripts/publish.sh
sh ./scripts/publish.sh
workflows:
version: 2
workflow:

View File

@ -4,3 +4,6 @@ Checklist:
* [ ] Any new values are backwards compatible and/or have sensible default.
* [ ] I have followed the testing instructions in the [contributing guide](https://github.com/argoproj/argo-helm/blob/master/CONTRIBUTING.md).
* [ ] I have signed the CLA and the build is green.
* [ ] I will test my changes again once merged to master and published.
Changes are automatically published when merged to `master`. They are not published on branches.

View File

@ -2,7 +2,7 @@
set -eux
SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
GIT_PUSH=${GIT_PUSH:-true}
GIT_PUSH=${GIT_PUSH:-false}
rm -rf $SRCROOT/output && git clone -b gh-pages git@github.com:argoproj/argo-helm.git $SRCROOT/output