Fix Docker publish job handoff (cache → artifacts) - #57
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Internal CI fix — the
Publishworkflow's Docker step has been failing on every merge since the trigger was switched frompushtopull_request:[closed].The workflow passed build output between jobs through
actions/cache, but GitHub makes the Actions cache read-only onpull_request-triggered runs (cache write denied: token has no writable scopes). The cache saves stopped persisting, sopublish-dockerrestored the output cache withfail-on-cache-miss: true, hard-failed, and the Docker build could not findSource/AuthProxy/out.release,dotnet-publishandpublish-nugetall 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 onpull_requestruns, and keeps thepull_requesttrigger socratis/release-actionstill reads the PR's semver label. No product code changes.