pull/55/head
野原小牛 2025-03-05 09:55:40 +08:00
parent a8df542146
commit d2ff047c5a
1 changed files with 3 additions and 4 deletions

View File

@ -29,13 +29,12 @@ jobs:
id: tags id: tags
run: | run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then 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 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 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 fi
DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
- name: Build and Push Docker Image - name: Build and Push Docker Image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5