Extract digest hash from Docker image inspection output - #594
Merged
Conversation
docker inspect RepoDigests returns the full repo-plus-digest reference, but the app Dockerfile concatenates the repository name with this value again in its FROM line, producing an invalid double-prefixed image reference and failing the web app image build. Strip the repository prefix so only the sha256 digest is passed through, matching what the FROM line and OCI base-digest label expect.
|
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.



Pull Request
📖 Description
Update the release workflow to extract only the digest hash portion from Docker image inspection output. The
docker inspectcommand returns the full image reference including the registry (e.g.,mcr.microsoft.com/dotnet/aspnet@sha256:...), but only the digest hash portion (e.g.,sha256:...) is needed for downstream use.This change uses bash parameter expansion (
${variable#*@}) to remove everything up to and including the@symbol, leaving only the digest hash.🎫 Issues
N/A
👩💻 Reviewer Notes
This is a minor workflow fix that ensures the output variables contain only the digest hash rather than the full image reference. The change applies the same extraction logic to both the runtime and nginx digest outputs for consistency.
📑 Test Plan
N/A — This is a workflow configuration change that will be validated by the automated release workflow execution.
✅ Checklist
General