This commit is contained in:
xRain 2023-08-22 14:37:14 +08:00
parent c7b95c63ba
commit 56ed19d616

View File

@ -13,7 +13,8 @@ runs:
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 && \
echo "已经构建完DOCKERFILE了"' echo "已经构建完DOCKERFILE了" && \
cat Dockerfile'
# - name: build .net app # - name: build .net app
# uses: docker://mcr.microsoft.com/dotnet/sdk:7.0 # uses: docker://mcr.microsoft.com/dotnet/sdk:7.0
@ -25,7 +26,6 @@ runs:
with: with:
entrypoint: "/bin/sh" entrypoint: "/bin/sh"
args: | args: |
-c "cat Dockerfile"
-c "echo 这是一个测试信息" -c "echo 这是一个测试信息"
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .' -c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
-c "echo 已经构建完了" -c "echo 已经构建完了"