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
|
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:
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue