From ad3e908c987f2ff8a37a92386ef2841678f1ce9d Mon Sep 17 00:00:00 2001 From: Max Vojtkov Date: Sun, 9 Aug 2026 14:00:20 +0300 Subject: [PATCH] Fix the upstream checkout and skip the dead cache server Two separate CI failures: - The cross-repo checkout of terraform-provider-dokploy asked the API for the default branch and got "not found", failing the build. An explicit ref: main skips the lookup entirely. - setup-go caches by default, and this runner's cache server is unreachable from job containers, so restore and save each block until they time out. The same change cut the upstream provider's build from 15m46s to 2m37s. --- .gitea/workflows/build.yml | 9 ++++++--- .gitea/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 104ef5e..9e2d307 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -31,13 +31,16 @@ jobs: repository: ${{ env.UPSTREAM_REPO }} path: ${{ env.UPSTREAM_DIR }} token: ${{ secrets.GITEA_TOKEN }} + # Without an explicit ref, checkout asks the API for the default + # branch and fails on this Gitea with "not found". + ref: main - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache-dependency-path: | - pulumi-dokploy/provider/go.sum - pulumi-dokploy/sdk/go.sum + # The runner's cache server is unreachable from job containers, so + # every restore/save hangs until timeout. Re-enable once fixed. + cache: false - uses: actions/setup-node@v4 with: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5674c7f..b4791c9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -33,10 +33,13 @@ jobs: repository: ${{ env.UPSTREAM_REPO }} path: ${{ env.UPSTREAM_DIR }} token: ${{ secrets.GITEA_TOKEN }} + # checkout's default-branch lookup returns "not found" on this Gitea. + ref: main - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache: false - uses: goreleaser/goreleaser-action@v6 with: @@ -59,10 +62,13 @@ jobs: repository: ${{ env.UPSTREAM_REPO }} path: ${{ env.UPSTREAM_DIR }} token: ${{ secrets.GITEA_TOKEN }} + # checkout's default-branch lookup returns "not found" on this Gitea. + ref: main - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} + cache: false - uses: actions/setup-node@v4 with: