From b9aadee25dc42b64e12513753d35a0f0ff44b25b Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 3 Nov 2023 10:25:32 +0800 Subject: [PATCH] fix --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b730742..f5e59be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,8 +11,8 @@ on: env: IMAGE_NAME: registry.ap-southeast-1.aliyuncs.com/kuops/easy-admin # docker image - TAG: ${{ github.sha }} - IMAGE_NAME_TAG: registry.ap-southeast-1.aliyuncs.com/kuops/easy-admin:${{ github.sha }} + TAG: ${{ secrets.IMAGE_NAME_TAG }} + IMAGE_NAME_TAG: registry.ap-southeast-1.aliyuncs.com/kuops/easy-admin:${{ secrets.IMAGE_NAME_TAG }} jobs: sync: @@ -74,9 +74,9 @@ jobs: echo "************ docker login end" docker build -t easy-admin:latest . echo "************ docker build end" - docker tag easy-admin ${{ secrets.IMAGE_NAME_TAG }} + docker tag easy-admin ${{ env.IMAGE_NAME_TAG }} echo "************ docker tag end" docker images echo "************ docker images end" - docker push registry.ap-southeast-1.aliyuncs.com/kuops/easy-admin:${{ secrets.IMAGE_NAME_TAG }} # 推送 + docker push ${{ env.IMAGE_NAME_TAG }} # 推送 echo "************ docker push end" \ No newline at end of file