diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 77e7fba..cce6a46 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -88,6 +88,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ env.REGISTRY }}/${{ env.GITHUB_REPOSITORY_LOWER_CASE }}/aihub:${{ env.MINVERVERSIONOVERRIDE }} labels: ${{ steps.meta.outputs.labels }} + build-args: MINVERVERSIONOVERRIDE=${{ env.MINVERVERSIONOVERRIDE }} - name: Extract metadata (tags, labels) for prep-docs Docker id: meta-docs diff --git a/src/AIHub/Dockerfile b/src/AIHub/Dockerfile index 5f4d4cd..a09037d 100644 --- a/src/AIHub/Dockerfile +++ b/src/AIHub/Dockerfile @@ -1,10 +1,9 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src - +ARG MINVERVERSIONOVERRIDE +ENV MINVERVERSIONOVERRIDE=${MINVERVERSIONOVERRIDE} COPY ./AIHub.csproj ./AIHub.csproj RUN dotnet restore ./AIHub.csproj - -# Copy everything else and build website COPY ./ ./app/ WORKDIR /src/app/ RUN dotnet publish -c release