Try gitversion

This commit is contained in:
Alex Hyett 2023-07-10 12:34:37 +01:00
parent 26057e3495
commit 289f9ca08e
2 changed files with 9 additions and 0 deletions

View file

@ -7,7 +7,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
- name: Semver
run: echo $GITVERSION_SEMVER
- name: Setup dotnet - name: Setup dotnet
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:

View file

@ -18,6 +18,7 @@ services:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
api: api:
image: GitHubActionsDemo.Api:${GITVERSION_SEMVER}
build: . build: .
restart: always restart: always
depends_on: depends_on: