This commit is contained in:
xRain 2023-08-22 13:57:52 +08:00
parent 4d8b695bb0
commit bd2be8ed06

View File

@ -4,7 +4,8 @@ description: 'build docker image and push to simcu code'
runs: runs:
using: 'composite' using: 'composite'
steps: steps:
- uses: docker://ubuntu:latest - name: create dockerfile
uses: docker://ubuntu:latest
with: with:
entrypoint: "/bin/bash" entrypoint: "/bin/bash"
args: | args: |
@ -14,11 +15,13 @@ runs:
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile' -c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
-c "echo 已经构建完DOCKERFILE了" -c "echo 已经构建完DOCKERFILE了"
- uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 - name: build .net app
uses: docker://mcr.microsoft.com/dotnet/sdk:7.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
- uses: docker://docker:git - name: build docker image
uses: docker://docker:git
with: with:
entrypoint: "/bin/sh" entrypoint: "/bin/sh"
args: | args: |