From 83190bd0d608fea254a766b6bd3164eb0e8d1814 Mon Sep 17 00:00:00 2001 From: cmendible <266546+cmendible@users.noreply.github.com> Date: Wed, 6 Mar 2024 12:20:41 +0100 Subject: [PATCH 1/2] Add build-args for MINVERVERSIONOVERRIDE in Dockerfile --- .github/workflows/main.yaml | 1 + src/AIHub/Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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 From ce4f7d628ef213677eb579dff36176f493fc22de Mon Sep 17 00:00:00 2001 From: Roberto Arocha Date: Wed, 6 Mar 2024 12:25:48 +0100 Subject: [PATCH 2/2] typo fixed --- src/AIHub/Views/Shared/_Layout.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AIHub/Views/Shared/_Layout.cshtml b/src/AIHub/Views/Shared/_Layout.cshtml index c18c6d7..d4e3855 100644 --- a/src/AIHub/Views/Shared/_Layout.cshtml +++ b/src/AIHub/Views/Shared/_Layout.cshtml @@ -214,7 +214,7 @@ - Know about about RAIIC + Know about RAIIC