3838 pull-requests : read
3939 outputs :
4040 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 }}
4541 base_version : ${{ steps.extract_base_version.outputs.version }}
4642 full_version : ${{ steps.extract_base_version.outputs.full_version }}
4743 build : ${{ steps.evaluate_build.outputs.result }}
5450 with :
5551 fetch-depth : 0
5652
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/setup@v4.0.1
64- with :
65- versionSpec : " 6.x"
66- preferLatestVersion : true
67-
6853 - name : extract - base version from Dockerfile and calculate version
6954 id : extract_base_version
7055 run : |
8873 echo "Full version with build metadata: $FULL_VERSION"
8974 echo "full_version=$FULL_VERSION" >> $GITHUB_OUTPUT
9075
91- - name : gitversion - execute
92- id : gitversion
93- uses : gittools/actions/gitversion/execute@v4.0.1
94- with :
95- configFilePath : GitVersion.yaml
96-
9776 - name : tools - detect changes
9877 id : pathsFilter
9978 uses : dorny/paths-filter@v3
@@ -155,8 +134,6 @@ jobs:
155134 build : ${{ needs.discovery.outputs.build }}
156135 build_push : ${{ needs.discovery.outputs.build_push }}
157136 build_configuration : ${{ needs.discovery.outputs.build_configuration }}
158- gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
159- gitVersion_AssemblySemFileVer : ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
160137 base_version : ${{ needs.discovery.outputs.base_version }}
161138 steps :
162139 - name : checkout
@@ -195,7 +172,7 @@ jobs:
195172 org.opencontainers.image.source=https://github.com/${{ github.repository }}
196173 org.opencontainers.image.url=https://github.com/${{ github.repository }}
197174 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 }}
199176 org.opencontainers.image.revision=${{ github.sha }}
200177 tags : |
201178 ${{ env.container_image_repository_dockerhub }}/${{ env.container_image }}:${{ env.base_version }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
@@ -209,7 +186,6 @@ jobs:
209186 needs : [discovery, build]
210187 runs-on : ubuntu-latest
211188 env :
212- gitVersion_SemVer : ${{ needs.discovery.outputs.gitVersion_SemVer }}
213189 base_version : ${{ needs.discovery.outputs.base_version }}
214190 steps :
215191 - name : checkout
@@ -253,10 +229,6 @@ jobs:
253229 needs : [discovery, manifest]
254230 runs-on : ubuntu-latest
255231 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 }}
260232 base_version : ${{ needs.discovery.outputs.base_version }}
261233 full_version : ${{ needs.discovery.outputs.full_version }}
262234 steps :
0 commit comments