Skip to content

Commit 38d23b8

Browse files
committed
refactor: remove GitVersion dependency entirely
- Removed GitVersion.yaml configuration file - Removed GitVersion setup and execution from pipeline - Cleaned up all GitVersion-related outputs and environment variables - Using custom version calculation exclusively - Simplified pipeline by removing unnecessary dependencies
1 parent aa74a6f commit 38d23b8

File tree

3 files changed

+3
-147
lines changed

3 files changed

+3
-147
lines changed

.claude/settings.local.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"Bash(dotnet-gitversion:*)",
2323
"Bash(ls:*)",
2424
"Bash(git add:*)",
25-
"Bash(git commit:*)"
25+
"Bash(git commit:*)",
26+
"Bash(git rm:*)"
2627
],
2728
"deny": []
2829
}

.github/workflows/pipeline.yaml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ jobs:
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 }}
@@ -54,17 +50,6 @@ jobs:
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/[email protected]
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: |
@@ -88,12 +73,6 @@ jobs:
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/[email protected]
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:

GitVersion.yaml

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)