Skip to content

Commit 5e658ce

Browse files
fix: this commit introduces git version setup and version display to deployment workflow
1 parent 0295e68 commit 5e658ce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/template-deployment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131

32+
- name: setup gitversion
33+
uses: gittools/actions/gitversion/setup@v0
34+
with:
35+
versionSpec: '5.x'
36+
3237
- name: GitVersion
3338
uses: gittools/actions/gitversion/execute@v0
3439
id: gitversion
3540

41+
- name: show version
42+
run: echo "version - ${{ steps.gitversion.outputs.semVer }}"
43+
3644
- name: build docker image
3745
run: docker build -t ${{ inputs.image_name }}:latest -t ${{ inputs.image_name }}:${{ steps.gitversion.outputs.semVer }} .
3846

0 commit comments

Comments
 (0)