From 581faf974cfaa697fe783bbb9c4df2f41de7efec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Wed, 25 Oct 2023 10:02:59 +0800 Subject: [PATCH] =?UTF-8?q?:green=5Fheart:=20=E4=BC=98=E5=8C=96Actions?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E6=89=93tag=E4=BA=8B=E4=BB=B6=E7=9A=84=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-image.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index 06a2f560..0912c772 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -2,8 +2,8 @@ name: BuildImage on: push: - branches: - - main +# branches: +# - main tags: - '*' @@ -32,7 +32,6 @@ jobs: tags: | type=ref,event=branch type=ref,event=tag - type=sha - name: Print Tags run: | @@ -40,15 +39,16 @@ jobs: echo "----------------- labels -----------------" echo "${{ steps.meta.outputs.labels }}" -# - name: Login to Repository -# uses: docker/login-action@v2 -# with: -# registry: gitee.ltd -# username: ${{ secrets.USERNAME }} -# password: ${{ secrets.PASSWORD }} + - name: Login to Repository + uses: docker/login-action@v2 + with: + registry: gitee.ltd + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} -# - name: Build image -# uses: docker/build-push-action@v2 -# with: -# push: true -# tags: ${{ fromJson(steps.gen_tags.outputs.tags) }} + - name: Build image + uses: docker/build-push-action@v2 + with: + push: true + tags: ${{ steps.gen_tags.outputs.tags }} + labels: ${{ steps.gen_tags.outputs.labels }}