From d59f00c6388b715d5670d81987fc58f60037a66b Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 22 May 2023 11:22:00 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=90=88=E5=B9=B6=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=92=8C=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/built-bin.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index fa1930b..8d0ceac 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -45,15 +45,13 @@ jobs: - name: Build run: cargo build --release - - - run: echo "secrets.GITHUB_TOKEN ${{ secrets.GITHUB_TOKEN }}, secrets.GITEA_TOKEN ${{ secrets.GITEA_TOKEN }}" - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ gitea.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.GITEA_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta @@ -68,6 +66,8 @@ jobs: ACTIONS_RUNTIME_TOKEN: '' with: context: . - push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Deploy to Gitea + run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}