diff --git a/action.yml b/action.yml index 795337a..1cf1b21 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ runs: export http_proxy=http://100.100.13.14:8118 && \ npm install && \ npm run build-only" - + - uses: docker://ubuntu:latest with: entrypoint: "/bin/bash" @@ -23,12 +23,4 @@ runs: echo "已经构建完DOCKERFILE了" && \ cat Dockerfile' - - uses: docker://docker:git - with: - entrypoint: "/bin/sh" - args: | - -c 'docker build -t ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \ - echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \ - docker login ${{vars.DOCKER_REGISTRY}} -u ${{vars.DOCKER_USER}} -p ${{vars.DOCKER_PASS}} && \ - docker push ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \ - echo ${{vars.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功' \ No newline at end of file + - uses: actions/docker-build-push@main \ No newline at end of file