Skip to content

Commit 422261e

Browse files
committed
ci(release): ignore buildkitd.toml dropped by Blacksmith builder
useblacksmith/setup-docker-builder drops a buildkitd.toml in the repo root when it initialises buildx. goreleaser's dirty-state check then refuses to proceed, which is why v2.5.0 and v2.6.0 shipped without any release artifacts. .gitignore excludes the file for new commits. The release workflow also writes it to .git/info/exclude after the builder step so that backfill dispatches against historical tags (whose .gitignore predates this commit) still see a clean working tree.
1 parent e3abea1 commit 422261e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ jobs:
5353
- name: Setup Blacksmith Builder
5454
uses: useblacksmith/setup-docker-builder@ac083cc84672d01c60d5e8561d0a939b697de542 # v1
5555

56+
# The Blacksmith builder drops buildkitd.toml in the repo root. The
57+
# repo's .gitignore excludes it on main, but historical tags predate
58+
# that entry, so ignore it per-run to keep goreleaser's dirty-state
59+
# check happy on backfills too.
60+
- name: Ignore buildkitd.toml locally
61+
run: echo buildkitd.toml >> .git/info/exclude
62+
5663
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
5764
with:
5865
registry: ${{ env.REGISTRY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ vendor
4141
# GoReleaser
4242
dist/
4343

44+
# Dropped by useblacksmith/setup-docker-builder in CI
45+
buildkitd.toml
46+
4447
# Nix
4548
.direnv
4649
result

0 commit comments

Comments
 (0)