From 5554b3e52bfd9c9adc42c6aff039b71baa25f8a8 Mon Sep 17 00:00:00 2001 From: xRain Date: Wed, 11 Dec 2024 06:33:29 +0800 Subject: [PATCH] fix --- action.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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