test
This commit is contained in:
		@@ -8,15 +8,20 @@ runs:
 | 
			
		||||
    with:
 | 
			
		||||
      args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App
 | 
			
		||||
 | 
			
		||||
      - uses: docker://docker:git
 | 
			
		||||
  - uses: docker://ubuntu:latest
 | 
			
		||||
    with:
 | 
			
		||||
          entrypoint: "/bin/sh"
 | 
			
		||||
      entrypoint: "/bin/bash"
 | 
			
		||||
      args: |
 | 
			
		||||
        -c 'echo "FROM mcr.microsoft.com/dotnet/runtime:7.0" > Dockerfile'
 | 
			
		||||
        -c 'echo "COPY dist /home" >> Dockerfile'
 | 
			
		||||
        -c 'echo "WORKDIR /home" >> Dockerfile'
 | 
			
		||||
        -c 'echo "ENTRYPOINT [\"./App\"]" >> Dockerfile'
 | 
			
		||||
        -c "echo 已经构建完DOCKERFILE了"
 | 
			
		||||
 | 
			
		||||
  - uses: docker://docker:git
 | 
			
		||||
    with:
 | 
			
		||||
      entrypoint: "/bin/sh"
 | 
			
		||||
      args: |
 | 
			
		||||
        -c "cat Dockerfile"
 | 
			
		||||
        -c "echo 这是一个测试信息"
 | 
			
		||||
        -c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user