Files
terraform-provider-dokploy/.gitea/workflows/release.yml
Max Vojtkov 209079cf68
All checks were successful
build / build (push) Successful in 2m37s
release / release (push) Successful in 9m29s
Stop paying the unreachable cache server's timeout
setup-go caches by default. act_runner's built-in cache server binds to
an address job containers cannot route to, so every restore and save
blocks until it times out:

  Failed to restore: getCacheEntry failed: connect ETIMEDOUT 10.0.2.12:40789
  Failed to save:    reserveCache failed: connect ETIMEDOUT 10.0.2.12:40789

That was 634s of a 946s build. Disable caching until the runner's
cache.host points somewhere reachable, then turn it back on.
2026-08-09 13:57:18 +03:00

31 lines
816 B
YAML

name: release
on:
push:
tags: ["v*.*.*"]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# GoReleaser builds the changelog from history, so a shallow clone
# would produce an empty one.
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.25.x"
# See build.yml: the runner's cache server is unreachable from job
# containers, so caching costs minutes of timeouts instead of saving.
cache: false
- uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
# Injected by Gitea for every workflow run; no personal token needed.
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}