diff --git a/.circleci/config.yml b/.circleci/config.yml index f83c8d1e..7375d3d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,6 +35,9 @@ jobs: - run: name: Verify code gen command: make test-codegen + - run: + name: Release notes + command: make release-notes - save_cache: key: go-mod-v3-{{ checksum "go.sum" }} paths: diff --git a/Makefile b/Makefile index 8255b5b6..64dc3156 100644 --- a/Makefile +++ b/Makefile @@ -106,6 +106,11 @@ release-set: fmt version-set helm-package git tag $(VERSION) git push origin $(VERSION) +release-notes: + cd /tmp && GH_REL_URL="https://github.com/buchanae/github-release-notes/releases/download/0.2.0/github-release-notes-linux-amd64-0.2.0.tar.gz" && \ + curl -sSL $${GH_REL_URL} | tar xz && sudo mv github-release-notes /usr/local/bin/ && \ + github-release-notes -org weaveworks -repo flagger -since-latest-release + reset-test: kubectl delete -f ./artifacts/namespaces kubectl apply -f ./artifacts/namespaces diff --git a/test/goreleaser.sh b/test/goreleaser.sh index 41a30578..88d9151a 100755 --- a/test/goreleaser.sh +++ b/test/goreleaser.sh @@ -3,6 +3,8 @@ set -e TAR_FILE="/tmp/goreleaser.tar.gz" RELEASES_URL="https://github.com/goreleaser/goreleaser/releases" +GH_REL_DIR="github-release-notes-linux-amd64-0.2.0" +GH_REL_URL="https://github.com/buchanae/github-release-notes/releases/download/0.2.0/${GH_REL_DIR}.tar.gz" test -z "$TMPDIR" && TMPDIR="$(mktemp -d)" last_version() { @@ -21,8 +23,10 @@ download() { rm -f "$TAR_FILE" curl -s -L -o "$TAR_FILE" \ "$RELEASES_URL/download/$VERSION/goreleaser_$(uname -s)_$(uname -m).tar.gz" + + curl -sSL ${GH_REL_URL} | tar xz && sudo mv ${GH_REL_DIR}/github-release-notes /usr/local/bin/ && rm -rf ${GH_REL_DIR} } download tar -xf "$TAR_FILE" -C "$TMPDIR" -"${TMPDIR}/goreleaser" "$@" +"${TMPDIR}/goreleaser" --release-notes <(github-release-notes -org weaveworks -repo flagger -since-latest-release)