diff --git a/action.yml b/action.yml index 4771ea4..4efb395 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,8 @@ description: 'build docker image and push to simcu code' runs: using: 'composite' steps: - - uses: docker://ubuntu:latest + - name: create dockerfile + uses: docker://ubuntu:latest with: entrypoint: "/bin/bash" args: | @@ -14,11 +15,13 @@ runs: -c 'echo "ENTRYPOINT [\"./App\"]" >> 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: 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: entrypoint: "/bin/sh" args: |