This commit is contained in:
xRain 2023-08-22 12:32:31 +08:00
parent 0bdc66605a
commit 890943e399

View File

@ -10,8 +10,8 @@ runs:
- uses: docker://ubuntu:latest
with:
entrypoint: "/bin/bash"
args: |
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'
@ -21,6 +21,6 @@ runs:
with:
entrypoint: "/bin/sh"
args: |
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} .'
-c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1 .'
-c 'docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}}'
-c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}'
-c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1'