Skip to content

Commit

Permalink
Fix release script (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijie authored May 13, 2020
1 parent bb9463d commit d1b6082
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ci/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
function git::fetch_tags() {
echo "Fetching tags ..."
git fetch --tags
git describe --tags --abbrev=0
}

function git::find_latest_tag() {
Expand Down
3 changes: 3 additions & 0 deletions .ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function release::find_changed_charts() {
function release::package_chart() {
local chart=$1
echo "Packaging chart '$chart'..."
helm dependency update ${CHARTS_HOME}/charts/$chart
helm package ${CHARTS_HOME}/charts/$chart --destination ${CHARTS_PKGS}
}

Expand Down Expand Up @@ -83,6 +84,8 @@ function release::publish_charts() {
# hack::ensure_cr
docker pull quay.io/helmpack/chart-releaser:v${CR_VERSION}

git::fetch_tags

latest_tag=$(git::find_latest_tag)
echo "Latest tag: $latest_tag"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install chart
env:
Expand Down

0 comments on commit d1b6082

Please sign in to comment.