From dd5f025bc4c08fdae0a4d71aecdffbb5bd0cafc7 Mon Sep 17 00:00:00 2001 From: xRain Date: Thu, 23 May 2024 11:28:03 +0800 Subject: [PATCH] fix registry --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 151ead4..894c62b 100644 --- a/action.yml +++ b/action.yml @@ -25,8 +25,8 @@ runs: with: entrypoint: "/bin/sh" args: | - -c 'docker build -t ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} . && \ - echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \ - docker login ${{env.DOCKER_REGISTRY}} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \ - docker push ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }} && \ - echo ${{env.DOCKER_REGISTRY}}/${{github.repository}}:${{ github.ref_name }}推送成功' \ No newline at end of file + -c 'docker build -t ${{ github.server_url/https:\/\// }}/${{github.repository}}:${{ github.ref_name }} . && \ + echo ${{ github.server_url/https:\/\// }}/${{github.repository}}:${{ github.ref_name }}已经构建完了 && \ + docker login ${{ github.server_url/https:\/\// }} -u ${{env.DOCKER_USER}} -p ${{env.DOCKER_PASS}} && \ + docker push ${{ github.server_url/https:\/\// }}/${{github.repository}}:${{ github.ref_name }} && \ + echo ${{ github.server_url/https:\/\// }}/${{github.repository}}:${{ github.ref_name }}推送成功' \ No newline at end of file