From d2ff047c5a2ad8c4cc6789ff516beb789f3cd2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8E=E5=8E=9F=E5=B0=8F=E7=89=9B?= Date: Wed, 5 Mar 2025 09:55:40 +0800 Subject: [PATCH] ci --- .github/workflows/docker-image.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ff691277..07575ac8 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -29,13 +29,12 @@ jobs: id: tags run: | if [[ "${{ github.ref }}" == refs/tags/* ]]; then - echo "::set-output name=tags::${DOCKERHUB_USERNAME}/maimbot:${{ github.ref_name }},${DOCKERHUB_USERNAME}/maimbot:latest" + echo "::set-output name=tags::${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }},${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest" elif [ "${{ github.ref }}" == "refs/heads/main" ]; then - echo "::set-output name=tags::${DOCKERHUB_USERNAME}/maimbot:main,${DOCKERHUB_USERNAME}/maimbot:latest" + echo "::set-output name=tags::${{ secrets.DOCKERHUB_USERNAME }}/maimbot:main,${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest" elif [ "${{ github.ref }}" == "refs/heads/debug" ]; then - echo "::set-output name=tags::${DOCKERHUB_USERNAME}/maimbot:debug" + echo "::set-output name=tags::${{ secrets.DOCKERHUB_USERNAME }}/maimbot:debug" fi - DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }} - name: Build and Push Docker Image uses: docker/build-push-action@v5