ci: auto-generate changelog
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-02-11 20:46:47 +01:00
parent 3bb22d788b
commit bc083df11c
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
5 changed files with 64 additions and 10 deletions

23
.chglog/CHANGELOG.tpl.md Executable file
View File

@ -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 -}}

25
.chglog/config.yml Executable file
View File

@ -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

View File

@ -57,6 +57,15 @@ steps:
depends_on: depends_on:
- dryrun - 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 - name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20 image: thegeeklab/drone-docker-buildx:20
settings: settings:
@ -73,7 +82,7 @@ steps:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
depends_on: depends_on:
- tags - changelog
- name: publish-quay - name: publish-quay
image: thegeeklab/drone-docker-buildx:20 image: thegeeklab/drone-docker-buildx:20
@ -92,7 +101,7 @@ steps:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
depends_on: depends_on:
- tags - changelog
- name: publish-gitea - name: publish-gitea
image: plugins/gitea-release image: plugins/gitea-release
@ -185,6 +194,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: b8d9a506b8a79cc2d46a7ed2c801ea7611fdf4a45690d9f327d19f81303dd3ee hmac: 2bc6998878baf263dbda96a4c7946551fffc788c2738660b4ebee62887f375d0
... ...

View File

@ -1,11 +1,8 @@
# Changelog # Changelog
## v1.2.18-1 (2020-12-31) ## v1.2.18-2 (2021-01-29)
### Others ### 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 22cab88
- **deps**: update thegeeklab/nginx:latest docker digest to 1cf8372 - remove gomplate debug output
- **deps**: pin docker digests
- replace master by main as default branch
- use renovate preset config

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2020 Robert Kaussow <mail@geeklabor.de> Copyright (c) 2021 Robert Kaussow <mail@thegeeklab.de>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal