fix(ci): emit native apphosts in fastlane images
Force native apphost generation and validate fastlane output files. Co-authored-by: JustMe <mr.toing@outlook.com>
This commit is contained in:
1 parent
7cc3afbd9b
commit
ee24593b2a
2 files changed
+8
-3
No files matched your search
@@ -7,11 +7,14 @@ RUN dotnet restore agent/src/Monitor.Agent -r linux-x64 --artifacts-path /artifa
|
|||||||
|
|
||||||
COPY source/backend/ ./
|
COPY source/backend/ ./
|
||||||
RUN dotnet publish agent/src/Monitor.Agent -m:3 -c Release -r linux-x64 \
|
RUN dotnet publish agent/src/Monitor.Agent -m:3 -c Release -r linux-x64 \
|
||||||
--self-contained true --no-restore -p:PublishAot=true -p:StripSymbols=true \
|
--self-contained true --no-restore -p:PublishAot=true -p:UseAotAnywhere=false \
|
||||||
|
-p:UseAppHost=true -p:StripSymbols=true \
|
||||||
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/agent \
|
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/agent \
|
||||||
&& dotnet publish fleet/tools/fleet-enroll -m:3 -c Release -r linux-x64 \
|
&& dotnet publish fleet/tools/fleet-enroll -m:3 -c Release -r linux-x64 \
|
||||||
--self-contained true --no-restore -p:PublishAot=true -p:StripSymbols=true \
|
--self-contained true --no-restore -p:PublishAot=true -p:UseAotAnywhere=false \
|
||||||
|
-p:UseAppHost=true -p:StripSymbols=true \
|
||||||
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/enroll
|
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/enroll
|
||||||
|
RUN test -x /out/agent/monitor-agent && test -x /out/enroll/fleet-enroll
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled-extra
|
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled-extra
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,10 @@ RUN dotnet restore probe/src/Monitor.Probe -r linux-x64 --artifacts-path /artifa
|
|||||||
|
|
||||||
COPY source/backend/ ./
|
COPY source/backend/ ./
|
||||||
RUN dotnet publish probe/src/Monitor.Probe -m:3 -c Release -r linux-x64 \
|
RUN dotnet publish probe/src/Monitor.Probe -m:3 -c Release -r linux-x64 \
|
||||||
--self-contained true --no-restore -p:PublishAot=true -p:StripSymbols=true \
|
--self-contained true --no-restore -p:PublishAot=true -p:UseAotAnywhere=false \
|
||||||
|
-p:UseAppHost=true -p:StripSymbols=true \
|
||||||
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/probe
|
-p:DebugType=none -p:DebugSymbols=false --artifacts-path /artifacts -o /out/probe
|
||||||
|
RUN test -x /out/probe/monitor-probe
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled-extra
|
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble-chiseled-extra
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user