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

Commit

Permalink
Update travis to always run repo-sync
Browse files Browse the repository at this point in the history
This will ensure that updates to the chart source (indepdendent to
app/docker image updates) are published to the chart repository.

This commit also fixes a bug in the repo-sync script to ensure existing
versions are correctly skipped.
  • Loading branch information
Adnan Abdulhussein committed Jun 23, 2017
1 parent a836999 commit 4aa6051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ after_success:
docker push bitnami/monocular-api
docker push bitnami/monocular-ui
if [[ -n "$TRAVIS_TAG" ]]; then
bash ./scripts/repo-sync.sh true
fi
./scripts/repo-sync.sh
fi
- bash <(curl -s https://codecov.io/bash)

Expand Down
2 changes: 1 addition & 1 deletion scripts/repo-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fi

# Skip repository sync if chart already exists in index
CHART_VERSION=$(grep '^version:' $CHART_PATH/Chart.yaml | awk '{print $2}')
if ! grep -q "version: $CHART_VERSION" $BUILD_DIR/index.yaml; then
if grep -q "version: $CHART_VERSION" $BUILD_DIR/index.yaml; then
log "Chart version $CHART_VERSION already exists... skipping"
exit 0
fi
Expand Down

0 comments on commit 4aa6051

Please sign in to comment.