🐛 Tryin' to fix build
Some checks are pending
Build and Push Dyson Sphere / build (push) Waiting to run
Some checks are pending
Build and Push Dyson Sphere / build (push) Waiting to run
This commit is contained in:
parent
7845e4c0d7
commit
6bd125408e
5
.github/workflows/docker-build.yml
vendored
5
.github/workflows/docker-build.yml
vendored
@ -24,9 +24,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
|
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: DysonNetwork.Sphere
|
file: DysonNetwork.Sphere/Dockerfile
|
||||||
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: xsheep2010/dyson-sphere:latest
|
tags: xsheep2010/dyson-sphere:latest
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
@ -1 +0,0 @@
|
|||||||
node_modules
|
|
@ -1,6 +1,6 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Build.Framework;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
namespace DysonNetwork.Sphere.Account;
|
namespace DysonNetwork.Sphere.Account;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.VisualStudio.Web.CodeGenerators.Mvc.Templates.BlazorIdentity.Pages;
|
|
||||||
using NodaTime;
|
using NodaTime;
|
||||||
using Point = NetTopologySuite.Geometries.Point;
|
using Point = NetTopologySuite.Geometries.Point;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using Newtonsoft.Json;
|
using System.Text.Json.Serialization;
|
||||||
using NodaTime;
|
using NodaTime;
|
||||||
|
|
||||||
namespace DysonNetwork.Sphere.Developer;
|
namespace DysonNetwork.Sphere.Developer;
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
|
||||||
USER $APP_UID
|
USER $APP_UID
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
RUN apt-get update && apt-get install -y nodejs npm
|
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["DysonNetwork.Sphere.csproj", "."]
|
|
||||||
RUN dotnet restore "DysonNetwork.Sphere.csproj"
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN dotnet build "DysonNetwork.Sphere.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
WORKDIR "/src/DysonNetwork.Sphere"
|
||||||
|
RUN dotnet restore
|
||||||
|
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
RUN dotnet publish "DysonNetwork.Sphere.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
<Touch Files="$(NpmInstallStampFile)" AlwaysCreate="true" />
|
<Touch Files="$(NpmInstallStampFile)" AlwaysCreate="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="NpmBuildTailwind" DependsOnTargets="NpmInstall" BeforeTargets="Build">
|
<!-- <Target Name="NpmBuildTailwind" DependsOnTargets="NpmInstall" BeforeTargets="Build">-->
|
||||||
<Exec Command="npm run css:build" />
|
<!-- <Exec Command="npm run css:build" />-->
|
||||||
</Target>
|
<!-- </Target>-->
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
|
||||||
@ -40,7 +40,6 @@
|
|||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.4" />
|
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.4" />
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
|
|
||||||
<PackageReference Include="MimeTypes" Version="2.5.2">
|
<PackageReference Include="MimeTypes" Version="2.5.2">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
@ -102,12 +101,12 @@
|
|||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
<LastGenOutput>Email.LandingResource.Designer.cs</LastGenOutput>
|
<LastGenOutput>Email.LandingResource.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Update="Resources\Localization\SharedResource.zh-hans.resx">
|
<!-- <EmbeddedResource Update="Resources\Localization\SharedResource.zh-hans.resx">-->
|
||||||
<DependentUpon>SharedResource.resx</DependentUpon>
|
<!-- <DependentUpon>SharedResource.resx</DependentUpon>-->
|
||||||
</EmbeddedResource>
|
<!-- </EmbeddedResource>-->
|
||||||
<EmbeddedResource Update="Resources\Localization\AccountEventResource.zh-hans.resx">
|
<!-- <EmbeddedResource Update="Resources\Localization\AccountEventResource.zh-hans.resx">-->
|
||||||
<DependentUpon>AccountEventResource.resx</DependentUpon>
|
<!-- <DependentUpon>AccountEventResource.resx</DependentUpon>-->
|
||||||
</EmbeddedResource>
|
<!-- </EmbeddedResource>-->
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -133,4 +132,14 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\appsettings.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\DysonNetwork.Sphere.deps.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\DysonNetwork.Sphere.runtimeconfig.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\DysonNetwork.Sphere.staticwebassets.endpoints.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\Keys\Solian.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\package-lock.json" />
|
||||||
|
<_ContentIncludedByDefault Remove="app\publish\package.json" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
|
||||||
using NodaTime;
|
using NodaTime;
|
||||||
|
|
||||||
namespace DysonNetwork.Sphere.Permission;
|
namespace DysonNetwork.Sphere.Permission;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user