38
38
pull-requests : read
39
39
outputs :
40
40
pathsFilter_src : ${{ steps.pathsFilter.outputs.src }}
41
- gitVersion_SemVer : ${{ steps.gitversion.outputs.GitVersion_SemVer }}
42
- gitVersion_FullSemVer : ${{ steps.gitversion.outputs.GitVersion_FullSemVer }}
43
- gitVersion_InformationalVersion : ${{ steps.gitversion.outputs.GitVersion_InformationalVersion }}
44
- gitVersion_AssemblySemFileVer : ${{ steps.gitversion.outputs.GitVersion_AssemblySemFileVer }}
45
41
base_version : ${{ steps.extract_base_version.outputs.version }}
46
42
full_version : ${{ steps.extract_base_version.outputs.full_version }}
47
43
build : ${{ steps.evaluate_build.outputs.result }}
54
50
with :
55
51
fetch-depth : 0
56
52
57
- - name : tools - dotnet - install
58
- uses : actions/setup-dotnet@v4
59
- with :
60
- dotnet-version : " 9.x"
61
-
62
- - name : tools - gitversion - install
63
- uses :
gittools/actions/gitversion/[email protected]
64
- with :
65
- versionSpec : " 6.x"
66
- preferLatestVersion : true
67
-
68
53
- name : extract - base version from Dockerfile and calculate version
69
54
id : extract_base_version
70
55
run : |
88
73
echo "Full version with build metadata: $FULL_VERSION"
89
74
echo "full_version=$FULL_VERSION" >> $GITHUB_OUTPUT
90
75
91
- - name : gitversion - execute
92
- id : gitversion
93
- uses :
gittools/actions/gitversion/[email protected]
94
- with :
95
- configFilePath : GitVersion.yaml
96
-
97
76
- name : tools - detect changes
98
77
id : pathsFilter
99
78
uses : dorny/paths-filter@v3
@@ -155,8 +134,6 @@ jobs:
155
134
build : ${{ needs.discovery.outputs.build }}
156
135
build_push : ${{ needs.discovery.outputs.build_push }}
157
136
build_configuration : ${{ needs.discovery.outputs.build_configuration }}
158
- gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
159
- gitVersion_AssemblySemFileVer : ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
160
137
base_version : ${{ needs.discovery.outputs.base_version }}
161
138
steps :
162
139
- name : checkout
@@ -195,7 +172,7 @@ jobs:
195
172
org.opencontainers.image.source=https://github.com/${{ github.repository }}
196
173
org.opencontainers.image.url=https://github.com/${{ github.repository }}
197
174
org.opencontainers.image.vendor=https://github.com/${{ github.repository_owner }}
198
- org.opencontainers.image.version=${{ env.gitVersion_SemVer }}
175
+ org.opencontainers.image.version=${{ env.base_version }}
199
176
org.opencontainers.image.revision=${{ github.sha }}
200
177
tags : |
201
178
${{ env.container_image_repository_dockerhub }}/${{ env.container_image }}:${{ env.base_version }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
@@ -209,7 +186,6 @@ jobs:
209
186
needs : [discovery, build]
210
187
runs-on : ubuntu-latest
211
188
env :
212
- gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
213
189
base_version : ${{ needs.discovery.outputs.base_version }}
214
190
steps :
215
191
- name : checkout
@@ -253,10 +229,6 @@ jobs:
253
229
needs : [discovery, manifest]
254
230
runs-on : ubuntu-latest
255
231
env :
256
- gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
257
- gitVersion_FullSemVer : ${{ needs.discovery.outputs.gitVersion_FullSemVer }}
258
- gitVersion_InformationalVersion : ${{ needs.discovery.outputs.gitVersion_InformationalVersion }}
259
- gitVersion_AssemblySemFileVer : ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
260
232
base_version : ${{ needs.discovery.outputs.base_version }}
261
233
full_version : ${{ needs.discovery.outputs.full_version }}
262
234
steps :
0 commit comments