mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 11:06:43 +01:00
swap out the changelog generator for chronicle tool (#580)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
87ce9fff06
commit
4bf08e6b6d
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@ -96,10 +96,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: docker-practice/actions-setup-docker@v1
|
- uses: docker-practice/actions-setup-docker@v1
|
||||||
|
|
||||||
# note, it is important to always be auth'd into docker.io to prevent rate limiting issues
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
run: echo ${{ secrets.TOOLBOX_DOCKER_PASS }} | docker login docker.io -u ${{ secrets.TOOLBOX_DOCKER_USER }} --password-stdin
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|||||||
22
Makefile
22
Makefile
@ -103,6 +103,7 @@ bootstrap-tools: $(TEMPDIR)
|
|||||||
GO111MODULE=off GOBIN=$(shell realpath $(TEMPDIR)) go get -u golang.org/x/perf/cmd/benchstat
|
GO111MODULE=off GOBIN=$(shell realpath $(TEMPDIR)) go get -u golang.org/x/perf/cmd/benchstat
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(TEMPDIR)/ v1.42.1
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(TEMPDIR)/ v1.42.1
|
||||||
curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.2.0
|
curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.2.0
|
||||||
|
curl -sSfL https://raw.githubusercontent.com/anchore/chronicle/main/install.sh | sh -s -- -b $(TEMPDIR)/ v0.1.2-beta
|
||||||
.github/scripts/goreleaser-install.sh -b $(TEMPDIR)/ v0.177.0
|
.github/scripts/goreleaser-install.sh -b $(TEMPDIR)/ v0.177.0
|
||||||
|
|
||||||
.PHONY: bootstrap-go
|
.PHONY: bootstrap-go
|
||||||
@ -251,31 +252,14 @@ cli: $(SNAPSHOTDIR) ## Run CLI tests
|
|||||||
|
|
||||||
.PHONY: changlog-release
|
.PHONY: changlog-release
|
||||||
changelog-release:
|
changelog-release:
|
||||||
@echo "Last tag: $(SECOND_TO_LAST_TAG)"
|
$(TEMPDIR)/chronicle --since-tag $(SECOND_TO_LAST_TAG) --until-tag $(LAST_TAG) -vv > CHANGELOG.md
|
||||||
@docker run --rm \
|
|
||||||
-v "$(shell pwd)":/usr/local/src/your-app \
|
|
||||||
ferrarimarco/github-changelog-generator \
|
|
||||||
--user anchore \
|
|
||||||
--project $(BIN) \
|
|
||||||
-t ${GITHUB_TOKEN} \
|
|
||||||
--exclude-labels 'duplicate,question,invalid,wontfix,size:small,size:medium,size:large,size:x-large' \
|
|
||||||
--no-pr-wo-labels \
|
|
||||||
--no-issues-wo-labels \
|
|
||||||
--since-tag $(SECOND_TO_LAST_TAG)
|
|
||||||
|
|
||||||
@printf '\n$(BOLD)$(CYAN)Release $(VERSION) Changelog$(RESET)\n\n'
|
@printf '\n$(BOLD)$(CYAN)Release $(VERSION) Changelog$(RESET)\n\n'
|
||||||
@cat CHANGELOG.md
|
@cat CHANGELOG.md
|
||||||
|
|
||||||
.PHONY: changelog-unreleased
|
.PHONY: changelog-unreleased
|
||||||
changelog-unreleased: ## show the current changelog that will be produced on the next release (note: requires GITHUB_TOKEN set)
|
changelog-unreleased: ## show the current changelog that will be produced on the next release (note: requires GITHUB_TOKEN set)
|
||||||
@docker run -it --rm \
|
$(TEMPDIR)/chronicle --since-tag $(LAST_TAG) -vv > CHANGELOG.md
|
||||||
-v "$(shell pwd)":/usr/local/src/your-app \
|
|
||||||
ferrarimarco/github-changelog-generator \
|
|
||||||
--user anchore \
|
|
||||||
--project $(BIN) \
|
|
||||||
-t ${GITHUB_TOKEN} \
|
|
||||||
--exclude-labels 'duplicate,question,invalid,wontfix,size:small,size:medium,size:large,size:x-large' \
|
|
||||||
--since-tag $(LAST_TAG)
|
|
||||||
|
|
||||||
@printf '\n$(BOLD)$(CYAN)Unreleased Changes (closed PRs and issues will not be in the final changelog)$(RESET)\n'
|
@printf '\n$(BOLD)$(CYAN)Unreleased Changes (closed PRs and issues will not be in the final changelog)$(RESET)\n'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user