From 0f606b1e33a7aa9c216e787b69de9ec464757f91 Mon Sep 17 00:00:00 2001 From: Mr-lixh Date: Mon, 27 Mar 2023 18:59:54 +0800 Subject: [PATCH] fix docker login --- .gitea/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3ac24ae..78eef9d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -18,10 +18,16 @@ jobs: 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 + run: | + docker version + docker build -t artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest . + docker push artifacts.iflytek.com/docker-private/ai_devops/gitea_actions:latest +# - +# 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 "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v3