Try gitversion
This commit is contained in:
parent
26057e3495
commit
289f9ca08e
2 changed files with 9 additions and 0 deletions
8
.github/workflows/build-and-test.yml
vendored
8
.github/workflows/build-and-test.yml
vendored
|
@ -7,7 +7,15 @@ jobs:
|
|||
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
with:
|
||||
versionSpec: '5.x'
|
||||
- uses: actions/checkout@v3
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
- name: Semver
|
||||
run: echo $GITVERSION_SEMVER
|
||||
- name: Setup dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
|
|
|
@ -18,6 +18,7 @@ services:
|
|||
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
|
||||
api:
|
||||
image: GitHubActionsDemo.Api:${GITVERSION_SEMVER}
|
||||
build: .
|
||||
restart: always
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in a new issue