From 289f9ca08ed684f7b27abc4671c9bcff8c8934fd Mon Sep 17 00:00:00 2001 From: Alex Hyett Date: Mon, 10 Jul 2023 12:34:37 +0100 Subject: [PATCH] Try gitversion --- .github/workflows/build-and-test.yml | 8 ++++++++ docker-compose.yml | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 5d93262..2d59827 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: diff --git a/docker-compose.yml b/docker-compose.yml index 27f1e5c..949b36d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: