Skip to content

Fix Docker publish job handoff (cache → artifacts) - #57

Merged
woksin merged 1 commit into
mainfrom
fix/publish-docker-artifact-handoff
Jul 14, 2026
Merged

Fix Docker publish job handoff (cache → artifacts)#57
woksin merged 1 commit into
mainfrom
fix/publish-docker-artifact-handoff

Conversation

@woksin

@woksin woksin commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Internal CI fix — the Publish workflow's Docker step has been failing on every merge since the trigger was switched from push to pull_request:[closed].

The workflow passed build output between jobs through actions/cache, but GitHub makes the Actions cache read-only on pull_request-triggered runs (cache write denied: token has no writable scopes). The cache saves stopped persisting, so publish-docker restored the output cache with fail-on-cache-miss: true, hard-failed, and the Docker build could not find Source/AuthProxy/out. release, dotnet-publish and publish-nuget all succeeded — only the Docker image was never pushed (affecting v2.6.0 and v2.6.1).

This replaces the cache-based cross-job handoff with upload-artifact/download-artifact, which is writable on pull_request runs, and keeps the pull_request trigger so cratis/release-action still reads the PR's semver label. No product code changes.

The Publish workflow moved build output between jobs through actions/cache,
but the trigger is pull_request:[closed], and GitHub makes the Actions cache
read-only on pull_request-triggered runs (cache write denied: token has no
writable scopes). The cache saves silently stopped persisting, so publish-docker
restored dotnet-cache with fail-on-cache-miss and hard-failed, leaving
Source/AuthProxy/out empty for the Docker build.

Replace the frontend->dotnet-publish->docker cache handoff with
upload-artifact/download-artifact, which is writable on pull_request runs.
Keeps the pull_request trigger so cratis/release-action still reads the PR's
semver label.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@woksin woksin added the patch label Jul 14, 2026
@woksin
woksin merged commit d90162f into main Jul 14, 2026
2 checks passed
@woksin
woksin deleted the fix/publish-docker-artifact-handoff branch July 14, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant