Skip to content

Commit d96ab7a

Browse files
Merge pull request #22 from devgateway/task/DVIZ-24/admin-docker-optimization
Task/dviz 24/admin docker optimization
2 parents 684ea12 + 548c148 commit d96ab7a

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ jobs:
8484
steps:
8585
- name: Checkout Repository
8686
uses: actions/checkout@v4
87-
with:
88-
fetch-depth: '0'
8987

9088
- name: Set up JDK
9189
uses: actions/setup-java@v4
@@ -112,10 +110,12 @@ jobs:
112110
&& jar -xf ../*.jar
113111
114112
- name: Generate a changelog
115-
uses: orhun/git-cliff-action@v3
113+
uses: orhun/git-cliff-action@v4
116114
id: changelog
117115
with:
118116
config: cliff.toml
117+
version: ${{ needs.build-and-push-docker-image.outputs.new_version }}
118+
args: '--unreleased'
119119
env:
120120
OUTPUT: CHANGELOG.md
121121
GITHUB_REPO: ${{ github.repository }}

cliff.toml

+13-5
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,19 @@ body = """
4646
# template for the changelog footer
4747
footer = """
4848
\n
49-
Full changelog is available at \
50-
[{{ remote.github.owner }}/{{ remote.github.repo }}]/{{release.version}}\n
49+
{% for release in releases -%}
50+
{% if release.version -%}
51+
{% if release.previous.version -%}
52+
[{{ release.version | trim_start_matches(pat="v") }}]: \
53+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
54+
/compare/{{ release.previous.version }}..{{ release.version }}
55+
{% endif -%}
56+
{% else -%}
57+
[{{release.version}}]: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}\
58+
/compare/{{ release.previous.version }}..HEAD
59+
{% endif -%}
60+
{% endfor %}
61+
5162
Developed by Development Gateway
5263
"""
5364
# remove the leading and trailing whitespace from the templates
@@ -84,6 +95,3 @@ filter_commits = false
8495
topo_order = false
8596
# sort the commits inside sections by oldest/newest order
8697
sort_commits = "newest"
87-
88-
[bump]
89-
initial_tag = "v1.0.0"

0 commit comments

Comments
 (0)