Skip to content

Commit

Permalink
Fix gitversion
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Jan 20, 2025
1 parent ba64d32 commit 6944bd7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.1.x'
versionSpec: '6.0.5'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/[email protected]
Expand All @@ -40,16 +40,16 @@ jobs:
go build -v -ldflags="
-w
-s
-X 'main.Version=v${{ steps.gitversion.outputs.SemVer }}'
-X 'main.Version=v${{ steps.gitversion.outputs.FullSemVer }}'
-X 'app/build.Time=$( date '+%F %H-%M-%S' )'
-X 'github.com/prometheus/common/version.Version=${{ steps.gitversion.outputs.SemVer }}'
-X 'github.com/prometheus/common/version.Version=${{ steps.gitversion.outputs.FullSemVer }}'
-X 'github.com/prometheus/common/version.Revision=${{ steps.gitversion.outputs.VersionSourceSha }}'
-X 'github.com/prometheus/common/version.Branch=${{ steps.gitversion.outputs.BranchName }}'
-X 'github.com/prometheus/common/version.BuildDate=$( date '+%F %H-%M-%S' )'"
- uses: actions/upload-artifact@v4
with:
name: docker_service_exporter.${{ steps.gitversion.outputs.SemVer }}
name: docker_service_exporter.${{ steps.gitversion.outputs.FullSemVer }}
path: src/docker_service_exporter

- name: Docker Build and push
Expand All @@ -58,8 +58,8 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Dockerfile
image-name: server
image-tag: ${{ steps.gitversion.outputs.SemVer }}
image-tag: ${{ steps.gitversion.outputs.FullSemVer }}
custom-args: |
--build-arg APP_VERSION=${{ steps.gitversion.outputs.SemVer }}
--build-arg APP_VERSION=${{ steps.gitversion.outputs.FullSemVer }}
--build-arg APP_REVISION=${{ steps.gitversion.outputs.VersionSourceSha }}
--build-arg APP_BRANCH=${{ steps.gitversion.outputs.BranchName }}

0 comments on commit 6944bd7

Please sign in to comment.