From 50ffe26b86b3a2e2ec0be941a275513f027876ce Mon Sep 17 00:00:00 2001
From: Mr-lixh <a601287411@163.com>
Date: Mon, 27 Mar 2023 19:25:03 +0800
Subject: [PATCH] fix docker login

---
 .gitea/workflows/build.yml | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index ff34ec4..46d12b8 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -22,19 +22,18 @@ jobs:
           registry: artifacts.iflytek.com
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
-      -
-        name: Build and push
-        run: |
-          docker version
-          docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
-          docker push artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
-#      - name: Set up Docker Buildx
-#        uses: docker/setup-buildx-action@v2
 #      -
 #        name: Build and push
-#        uses: docker/build-push-action@v4
-#        with:
-#          push: true
-#          tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
-
+#        run: |
+#          docker version
+#          docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . --file ${{ github.workspace }}/Dockerfile
+#          docker push artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v2
+      -
+        name: Build and push
+        uses: docker/build-push-action@v4
+        with:
+          push: true
+          tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest
       - run: echo "🍏 This job's status is ${{ job.status }}."