Skip to content

Fix for gitversion

Fix for gitversion #2

Workflow file for this run

name: Build Container
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
build-and-push-application:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['8.0.x']
steps:
- uses: actions/checkout@v1
with:
fetch-depth: '0'
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: 5.x
- id: determine_version
name: Determine Version
uses: gittools/actions/gitversion/[email protected]
with:
additionalArguments: /overrideconfig mode=Mainline
- name: build and push website container
working-directory: src
run: |
docker build -f "./RandomQuotes.Web/Dockerfile" --tag randomquotes-k8s:${{ steps.determine_version.outputs.semVer }} --tag randomquotes-k8s:latest .