test
This commit is contained in:
parent
e59d560c06
commit
d31100ddd6
11
action.yml
11
action.yml
@ -7,10 +7,10 @@ runs:
|
||||
- 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://ubuntu:latest
|
||||
|
||||
- uses: docker://docker:git
|
||||
with:
|
||||
entrypoint: "/bin/bash"
|
||||
entrypoint: "/bin/sh"
|
||||
args: |
|
||||
-c 'echo "FROM mcr.microsoft.com/dotnet/runtime:7.0" > Dockerfile'
|
||||
-c 'echo "COPY dist /home" >> Dockerfile'
|
||||
@ -18,11 +18,6 @@ runs:
|
||||
-c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
|
||||
-c "echo 已经构建完DOCKERFILE了"
|
||||
-c "cat Dockerfile"
|
||||
|
||||
- uses: docker://docker:git
|
||||
with:
|
||||
entrypoint: "/bin/sh"
|
||||
args: |
|
||||
-c "echo 这是一个测试信息"
|
||||
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
|
||||
-c "echo 已经构建完了"
|
||||
|
Loading…
Reference in New Issue
Block a user