diff --git a/action.yml b/action.yml index df1b384..88bbd1b 100644 --- a/action.yml +++ b/action.yml @@ -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 }}' \ No newline at end of file + -c 'docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}-1' \ No newline at end of file