From f1bae56ced71d0e53041c0bea91e78f5a4b9e94d Mon Sep 17 00:00:00 2001 From: TheSwerik Date: Wed, 9 Jul 2025 01:04:15 +0200 Subject: [PATCH 1/3] add yarn to docker --- src/Api/Dockerfile | 3 +++ src/Web/Dockerfile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index f7ab1a7..96ba660 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -3,6 +3,9 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine as builder WORKDIR /build COPY ../../. . +RUN apk add --no-cache nodejs npm +RUN npm install -g yarn +RUN yarn --version RUN dotnet publish -c Release -o /build/publish src/Api/Api.csproj ######################################################################### diff --git a/src/Web/Dockerfile b/src/Web/Dockerfile index 4630f5d..eb86810 100644 --- a/src/Web/Dockerfile +++ b/src/Web/Dockerfile @@ -3,6 +3,9 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine as builder WORKDIR /build COPY ../../. . +RUN apk add --no-cache nodejs npm +RUN npm install -g yarn +RUN yarn --version RUN dotnet publish -c Release -o /build/publish src/Web/Web.csproj ######################################################################### From 7cfcd00f09dd0df1aabbc98f1824ae9dfaaa9774 Mon Sep 17 00:00:00 2001 From: TheSwerik Date: Wed, 9 Jul 2025 01:08:16 +0200 Subject: [PATCH 2/3] man --- .drone.yml | 2 ++ src/Api/Dockerfile | 1 - src/Web/Dockerfile | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index e9b616e..26b849c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,8 @@ steps: - name: run tests image: mcr.microsoft.com/dotnet/sdk:9.0 commands: + - apk add --no-cache nodejs npm + - npm install -g yarn - dotnet test --- kind: pipeline diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index 96ba660..030cb95 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -5,7 +5,6 @@ WORKDIR /build COPY ../../. . RUN apk add --no-cache nodejs npm RUN npm install -g yarn -RUN yarn --version RUN dotnet publish -c Release -o /build/publish src/Api/Api.csproj ######################################################################### diff --git a/src/Web/Dockerfile b/src/Web/Dockerfile index eb86810..af2649f 100644 --- a/src/Web/Dockerfile +++ b/src/Web/Dockerfile @@ -5,7 +5,6 @@ WORKDIR /build COPY ../../. . RUN apk add --no-cache nodejs npm RUN npm install -g yarn -RUN yarn --version RUN dotnet publish -c Release -o /build/publish src/Web/Web.csproj ######################################################################### From 4fea16285e1aae27a5228852b469c346237c64d5 Mon Sep 17 00:00:00 2001 From: TheSwerik Date: Wed, 9 Jul 2025 01:08:23 +0200 Subject: [PATCH 3/3] wat --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 26b849c..1ecd05c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,7 @@ steps: commands: - apk add --no-cache nodejs npm - npm install -g yarn - - dotnet test + - dotnet test --- kind: pipeline type: docker