From 9c0988ef11ecb32242c21e91f8df249045b82ad2 Mon Sep 17 00:00:00 2001 From: Mr-lixh Date: Mon, 27 Mar 2023 15:39:10 +0800 Subject: [PATCH] fix docker login --- .gitea/workflows/build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 521dcbd..aa9152d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -9,22 +9,22 @@ jobs: - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 -# - -# name: Login to Docker Hub -# uses: docker/login-action@v2 -# with: -# # registry: artifacts.iflytek.com -# username: ${{ secrets.DOCKERHUB_USERNAME }} -# password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + registry: artifacts.iflytek.com + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v4 with: push: true tags: artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest - registry: artifacts.iflytek.com - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} +# registry: artifacts.iflytek.com +# username: ${{ secrets.DOCKERHUB_USERNAME }} +# password: ${{ secrets.DOCKERHUB_TOKEN }} - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3