From 227eb3db0e46abcbb76badeab14ad478a61cd329 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Sun, 13 Apr 2025 21:58:29 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=96=B0=E5=A2=9E=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release-nightly.yml | 50 ++++++++++++++-------------- internal/app/poll/poller.go | 1 + 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/release-nightly.yml b/.gitea/workflows/release-nightly.yml index 61da447..ea68adc 100644 --- a/.gitea/workflows/release-nightly.yml +++ b/.gitea/workflows/release-nightly.yml @@ -49,28 +49,28 @@ jobs: tags: | reg.liteyuki.icu/comp/liteyuki-runner:latest - - name: Build and push dind - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - target: dind - platforms: | - linux/amd64 -# linux/arm64 - push: true - tags: | - reg.liteyuki.icu/comp/liteyuki-runner:latest-dind - - - name: Build and push dind-rootless - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - target: dind-rootless - platforms: | - linux/amd64 -# linux/arm64 - push: true - tags: | - reg.liteyuki.icu/comp/liteyuki-runner:latest-dind-rootless +# - name: Build and push dind +# uses: docker/build-push-action@v5 +# with: +# context: . +# file: ./Dockerfile +# target: dind +# platforms: | +# linux/amd64 +## linux/arm64 +# push: true +# tags: | +# reg.liteyuki.icu/comp/liteyuki-runner:latest-dind +# +# - name: Build and push dind-rootless +# uses: docker/build-push-action@v5 +# with: +# context: . +# file: ./Dockerfile +# target: dind-rootless +# platforms: | +# linux/amd64 +## linux/arm64 +# push: true +# tags: | +# reg.liteyuki.icu/comp/liteyuki-runner:latest-dind-rootless diff --git a/internal/app/poll/poller.go b/internal/app/poll/poller.go index 186b769..d14c263 100644 --- a/internal/app/poll/poller.go +++ b/internal/app/poll/poller.go @@ -149,6 +149,7 @@ func (p *Poller) runTaskWithRecover(ctx context.Context, task *runnerv1.Task) { } }() // verify owner and repo + fmt.Println("正在匹配仓库...", task.Context.Fields["repository"].GetStringValue(), p.cfg.Runner.AllowedRepos) if matchAllowedRepo(task.Context.Fields["repository"].GetStringValue(), p.cfg.Runner.AllowedRepos) { log.WithError(errors.New("allowed repos not match")).Error("allowed repos not match") return