Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bf08e6

Browse files
authored
swap out the changelog generator for chronicle tool (anchore#580)
Signed-off-by: Alex Goodman <[email protected]>
1 parent 87ce9ff commit 4bf08e6

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ jobs:
9696
steps:
9797
- uses: docker-practice/actions-setup-docker@v1
9898

99-
# note, it is important to always be auth'd into docker.io to prevent rate limiting issues
100-
- name: Login to Docker Hub
101-
run: echo ${{ secrets.TOOLBOX_DOCKER_PASS }} | docker login docker.io -u ${{ secrets.TOOLBOX_DOCKER_USER }} --password-stdin
102-
10399
- uses: actions/setup-go@v2
104100
with:
105101
go-version: ${{ env.GO_VERSION }}

Makefile

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ bootstrap-tools: $(TEMPDIR)
103103
GO111MODULE=off GOBIN=$(shell realpath $(TEMPDIR)) go get -u golang.org/x/perf/cmd/benchstat
104104
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(TEMPDIR)/ v1.42.1
105105
curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.2.0
106+
curl -sSfL https://raw.githubusercontent.com/anchore/chronicle/main/install.sh | sh -s -- -b $(TEMPDIR)/ v0.1.2-beta
106107
.github/scripts/goreleaser-install.sh -b $(TEMPDIR)/ v0.177.0
107108

108109
.PHONY: bootstrap-go
@@ -251,31 +252,14 @@ cli: $(SNAPSHOTDIR) ## Run CLI tests
251252

252253
.PHONY: changlog-release
253254
changelog-release:
254-
@echo "Last tag: $(SECOND_TO_LAST_TAG)"
255-
@docker run --rm \
256-
-v "$(shell pwd)":/usr/local/src/your-app \
257-
ferrarimarco/github-changelog-generator \
258-
--user anchore \
259-
--project $(BIN) \
260-
-t ${GITHUB_TOKEN} \
261-
--exclude-labels 'duplicate,question,invalid,wontfix,size:small,size:medium,size:large,size:x-large' \
262-
--no-pr-wo-labels \
263-
--no-issues-wo-labels \
264-
--since-tag $(SECOND_TO_LAST_TAG)
255+
$(TEMPDIR)/chronicle --since-tag $(SECOND_TO_LAST_TAG) --until-tag $(LAST_TAG) -vv > CHANGELOG.md
265256

266257
@printf '\n$(BOLD)$(CYAN)Release $(VERSION) Changelog$(RESET)\n\n'
267258
@cat CHANGELOG.md
268259

269260
.PHONY: changelog-unreleased
270261
changelog-unreleased: ## show the current changelog that will be produced on the next release (note: requires GITHUB_TOKEN set)
271-
@docker run -it --rm \
272-
-v "$(shell pwd)":/usr/local/src/your-app \
273-
ferrarimarco/github-changelog-generator \
274-
--user anchore \
275-
--project $(BIN) \
276-
-t ${GITHUB_TOKEN} \
277-
--exclude-labels 'duplicate,question,invalid,wontfix,size:small,size:medium,size:large,size:x-large' \
278-
--since-tag $(LAST_TAG)
262+
$(TEMPDIR)/chronicle --since-tag $(LAST_TAG) -vv > CHANGELOG.md
279263

280264
@printf '\n$(BOLD)$(CYAN)Unreleased Changes (closed PRs and issues will not be in the final changelog)$(RESET)\n'
281265

0 commit comments

Comments
 (0)