Compare commits

...

12 Commits

Author SHA1 Message Date
masoud
3c528aba48 fix: Revert to aspnet runtime - FrontOffice is Blazor Server not WASM
All checks were successful
Build and Deploy / build (push) Successful in 1m42s
- Project uses Microsoft.NET.Sdk.Web (Blazor Server)
- Not Microsoft.NET.Sdk.BlazorWebAssembly
- Needs aspnet runtime to run the .dll, not nginx for static files
- Changed back from nginx:alpine to aspnet:9.0
2025-12-07 23:35:09 +00:00
masoud
380b4788dd fix: Remove default nginx files before copying Blazor WASM output
All checks were successful
Build and Deploy / build (push) Successful in 1m51s
- nginx:alpine has default index.html that prevents Blazor from loading
- Added RUN rm -rf /usr/share/nginx/html/* before COPY
2025-12-07 23:30:17 +00:00
masoud
0395c74041 fix: Change FrontOffice Dockerfile to nginx runtime for Blazor WASM
All checks were successful
Build and Deploy / build (push) Successful in 1m44s
- Changed from aspnet to nginx:alpine
- Copy wwwroot output instead of FrontOffice.dll
- Configure nginx SPA routing (try_files for client-side routing)
- Remove ENTRYPOINT dotnet command
- Fix project name references (FrontOffice.Main.csproj)
2025-12-07 22:48:28 +00:00
masoud
0f20d216b6 remove: Delete incorrect Dockerfile from root
Some checks failed
Build and Deploy / build (push) Failing after 16s
Workflow uses src/FrontOffice.Main/Dockerfile which is correct (nginx).
Root Dockerfile was using wrong runtime (aspnet instead of nginx).
2025-12-07 22:44:46 +00:00
baf984a942 Update src/FrontOffice.Main/Dockerfile
Some checks failed
Build and Deploy / build (push) Failing after 14s
2025-12-07 22:34:16 +00:00
2b07cc2270 Update src/FrontOffice.Main/Dockerfile
Some checks failed
Build and Deploy / build (push) Failing after 14s
2025-12-07 22:29:24 +00:00
masoodafar-web
b51a4b51cc refactor: migrate from nginx to aspnet runtime
Some checks failed
Build and Deploy / build (push) Failing after 13s
2025-12-08 01:55:13 +03:30
masoud
410f31671d fix: update kubeconfig for deployment
All checks were successful
Build and Deploy / build (push) Successful in 4m39s
2025-12-07 19:10:58 +00:00
masoud
1f9580cd6e test: trigger workflow to debug failure
All checks were successful
Build and Deploy / build (push) Successful in 1m40s
2025-12-07 19:09:00 +00:00
masoud
39c1c979db chore: test multi-remote push to git.afrino.co
Some checks failed
Build and Deploy / build (push) Failing after 1m30s
2025-12-07 18:52:37 +00:00
masoud
8eac688ad9 chore: trigger rebuild with new registry domain
All checks were successful
Build and Deploy / build (push) Successful in 1m27s
2025-12-07 17:32:24 +00:00
masoud
07be693b92 chore: migrate from IP to domain (git.foursat.afrino.co)
Some checks failed
Build and Deploy / build (push) Has been cancelled
2025-12-07 17:01:57 +00:00
4 changed files with 22 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ jobs:
mkdir -p /etc/docker
cat > /etc/docker/daemon.json << 'DAEMON'
{
"insecure-registries": ["194.5.195.53:30080", "gitea-svc:3000"]
"insecure-registries": ["git.foursat.afrino.co", "gitea-svc:3000"]
}
DAEMON
mkdir -p ~/.docker

View File

@@ -1,15 +0,0 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY src/*.sln ./ 2>/dev/null || true
COPY src/*/*.csproj ./
RUN for file in *.csproj; do mkdir -p "${file%.*}" && mv "$file" "${file%.*}/"; done 2>/dev/null || true
RUN dotnet restore "FrontOffice/FrontOffice.csproj" || dotnet restore
COPY src/ ./
RUN dotnet publish "FrontOffice/FrontOffice.csproj" -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080
ENTRYPOINT ["dotnet", "FrontOffice.dll"]

1
README.md Normal file
View File

@@ -0,0 +1 @@
# Test multi-remote push Sun Dec 7 19:09:00 UTC 2025

View File

@@ -1,24 +1,26 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy NuGet config and project file
COPY ["FrontOffice.Main/NuGet.config", "NuGet.config"]
COPY ["FrontOffice.Main/FrontOffice.Main.csproj", "FrontOffice.Main/"]
RUN dotnet restore "FrontOffice.Main/FrontOffice.Main.csproj" --configfile NuGet.config
COPY . .
WORKDIR "/src/FrontOffice.Main"
RUN dotnet publish "./FrontOffice.Main.csproj" -c Release -o /app/publish
FROM nginx:alpine AS final
WORKDIR /usr/share/nginx/html
COPY --from=build /app/publish/wwwroot .
COPY <<'NGINX_CONF' /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name _;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}
NGINX_CONF
# Restore dependencies
RUN dotnet restore "FrontOffice.Main/FrontOffice.Main.csproj" --configfile NuGet.config
# Copy all source code
COPY . .
# Build and publish
WORKDIR "/src/FrontOffice.Main"
RUN dotnet publish "FrontOffice.Main.csproj" -c Release -o /app/publish
# Runtime stage - aspnet for Blazor Server
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:80
EXPOSE 80
ENTRYPOINT ["dotnet", "FrontOffice.Main.dll"]