From 7e0fd677a135bb26f37b1831e5d7dfd9dea5292e Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Fri, 28 Apr 2023 21:49:08 +0800 Subject: [PATCH] Fix build-publish workflow failure (#24) Related to [this job failure](https://gitea.com/gitea/test-env/actions/runs/28/jobs/2) See https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294 Reviewed-on: https://gitea.com/gitea/test-env/pulls/24 Reviewed-by: Jason Song Reviewed-by: Lunny Xiao Co-authored-by: Zettat123 Co-committed-by: Zettat123 --- .gitea/workflows/build-publish.yaml | 2 ++ .gitea/workflows/dry-run.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/build-publish.yaml b/.gitea/workflows/build-publish.yaml index 9de971b..e9ce5fb 100644 --- a/.gitea/workflows/build-publish.yaml +++ b/.gitea/workflows/build-publish.yaml @@ -36,6 +36,8 @@ jobs: CI_REGISTRY_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - name: build image uses: https://github.com/docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' with: push: true tags: gitea/test_env:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }} diff --git a/.gitea/workflows/dry-run.yaml b/.gitea/workflows/dry-run.yaml index 1cb5dde..379eb28 100644 --- a/.gitea/workflows/dry-run.yaml +++ b/.gitea/workflows/dry-run.yaml @@ -16,6 +16,8 @@ jobs: uses: https://github.com/docker/setup-buildx-action@v2 - name: build image uses: https://github.com/docker/build-push-action@v4 + env: + ACTIONS_RUNTIME_TOKEN: '' with: push: false tags: gitea/test_env:linux-${{ matrix.go-version }}-amd64