update 8.0

This commit is contained in:
xRain 2024-01-18 00:57:41 +08:00
parent e508959b5f
commit 99f9efc0f9

View File

@ -5,7 +5,7 @@ runs:
using: 'composite' using: 'composite'
steps: steps:
- name: build .net app - name: build .net app
uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 uses: docker://mcr.microsoft.com/dotnet/sdk:8.0
with: with:
args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App
@ -14,7 +14,7 @@ runs:
with: with:
entrypoint: "/bin/bash" entrypoint: "/bin/bash"
args: | args: |
-c 'echo "FROM mcr.microsoft.com/dotnet/runtime:7.0" > Dockerfile && \ -c 'echo "FROM mcr.microsoft.com/dotnet/runtime:8.0" > Dockerfile && \
echo "COPY dist /home" >> Dockerfile && \ echo "COPY dist /home" >> Dockerfile && \
echo "WORKDIR /home" >> Dockerfile && \ echo "WORKDIR /home" >> Dockerfile && \
echo "ENTRYPOINT [\"./App\"]" >> Dockerfile && \ echo "ENTRYPOINT [\"./App\"]" >> Dockerfile && \