Compare commits

4 Commits
Author SHA1 Message Date
jakub 8027d80f9a Update Dockerfile 2026-11-03 22:13:24 +00:00
jakub bd168d8493 Update MyBlazorApp/Pages/Index.razor 2025-05-22 16:17:08 +00:00
jakub 7ffb65afdb Update .drone.yml 2025-05-22 16:14:10 +00:00
jakub a00abade0c Update Pages/Index.razor 2025-05-22 16:05:01 +00:00
4 changed files with 12 additions and 21 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ steps:
- name: docker-build-and-push
image: plugins/docker
settings:
repo: git.internet-master.cz/petr.vejchoda/dotnettest
repo: git.internet-master.cz/jakub/dotnettest
tags: latest
registry: git.internet-master.cz
dockerfile: Dockerfile
@@ -18,8 +18,8 @@ steps:
- name: call-portainer-webhook
image: curlimages/curl
commands:
- curl -X POST http://192.168.52.21:9000/api/webhooks/699d5326-607e-4db8-9d6c-71ef7093152d
- curl -X POST http://192.168.52.21:9000/api/webhooks/18e7c408-4e70-4ad3-8fe8-de6a3b577894
trigger:
branch:
- main
- main
+7 -12
View File
@@ -1,21 +1,16 @@
#test
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /repo
COPY . .
RUN ls -l /repo
RUN ls -l /repo/MyBlazorApp
WORKDIR /repo/MyBlazorApp
RUN dotnet publish MyBlazorApp.csproj \
-c Release -o /app/publish --no-self-contained
RUN dotnet publish MyBlazorApp.csproj -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS runtime
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "MyBlazorApp.dll"]
ENV ASPNETCORE_HTTP_PORTS=8080
EXPOSE 8080
ENTRYPOINT ["dotnet", "MyBlazorApp.dll"]
+1 -4
View File
@@ -1,6 +1,3 @@
@page "/"
<h1>Hello, world!</h1>
Welcome to your new Blazor app. new trigger.
This should be visible
just trying to rebuild the project
<h1>Hello, Blazor world! This is triggered by the new runner</h1>
+1 -2
View File
@@ -1,5 +1,4 @@
@page "/"
<h1>Hello, world!</h1>
Welcome to your new Blazor app. new trigger.
This should be visible
Welcome to your new Blazor app. Testing new runner