From bc083df11cdda0e43f258e3d7ee2992d58884352 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 11 Feb 2021 20:46:47 +0100 Subject: [PATCH] ci: auto-generate changelog --- .chglog/CHANGELOG.tpl.md | 23 +++++++++++++++++++++++ .chglog/config.yml | 25 +++++++++++++++++++++++++ .drone.yml | 15 ++++++++++++--- CHANGELOG.md | 9 +++------ LICENSE | 2 +- 5 files changed, 64 insertions(+), 10 deletions(-) create mode 100755 .chglog/CHANGELOG.tpl.md create mode 100755 .chglog/config.yml diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md new file mode 100755 index 0000000..95a8415 --- /dev/null +++ b/.chglog/CHANGELOG.tpl.md @@ -0,0 +1,23 @@ +# Changelog + +{{ range .Versions -}} +## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }}) + +{{ range .CommitGroups -}} +### {{ .Title }} + +{{ range .Commits -}} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +### {{ .Title }} + +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} diff --git a/.chglog/config.yml b/.chglog/config.yml new file mode 100755 index 0000000..86bb1f4 --- /dev/null +++ b/.chglog/config.yml @@ -0,0 +1,25 @@ +style: github +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://gitea.rknet.org/docker/kanboard +options: + commit_groups: + title_maps: + feat: Features + fix: Bug Fixes + perf: Performance Improvements + refactor: Code Refactoring + chore: Others + test: Testing + ci: CI Pipeline + docs: Documentation + header: + pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" + pattern_maps: + - Type + - Scope + - Subject + notes: + keywords: + - BREAKING CHANGE diff --git a/.drone.yml b/.drone.yml index 0204d16..76328cf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,6 +57,15 @@ steps: depends_on: - dryrun +- name: changelog + image: thegeeklab/git-chglog + commands: + - git fetch -tq + - git-chglog --no-color --no-emoji ${DRONE_TAG:---next-tag unreleased unreleased} + - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased} + depends_on: + - tags + - name: publish-dockerhub image: thegeeklab/drone-docker-buildx:20 settings: @@ -73,7 +82,7 @@ steps: - refs/heads/main - refs/tags/** depends_on: - - tags + - changelog - name: publish-quay image: thegeeklab/drone-docker-buildx:20 @@ -92,7 +101,7 @@ steps: - refs/heads/main - refs/tags/** depends_on: - - tags + - changelog - name: publish-gitea image: plugins/gitea-release @@ -185,6 +194,6 @@ depends_on: --- kind: signature -hmac: b8d9a506b8a79cc2d46a7ed2c801ea7611fdf4a45690d9f327d19f81303dd3ee +hmac: 2bc6998878baf263dbda96a4c7946551fffc788c2738660b4ebee62887f375d0 ... diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a43074..746afd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,8 @@ # Changelog -## v1.2.18-1 (2020-12-31) +## v1.2.18-2 (2021-01-29) ### Others -- **deps**: update dependency kanboard/kanboard to v1.2.18 ([#7](https://gitea.rknet.org/docker/kanboard/issues/7)) -- **deps**: update thegeeklab/nginx:latest docker digest to 1cf8372 -- **deps**: pin docker digests -- replace master by main as default branch -- use renovate preset config +- **deps:** update thegeeklab/nginx:latest docker digest to 22cab88 +- remove gomplate debug output diff --git a/LICENSE b/LICENSE index bb3e998..8e54586 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Robert Kaussow +Copyright (c) 2021 Robert Kaussow Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal