Skip to content

Extract digest hash from Docker image inspection output - #594

Merged
LarsLaskowski merged 1 commit into
mainfrom
claude/github-release-creation-issue-woqiwa
Aug 16, 2026
Merged

Extract digest hash from Docker image inspection output#594
LarsLaskowski merged 1 commit into
mainfrom
claude/github-release-creation-issue-woqiwa

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

Update the release workflow to extract only the digest hash portion from Docker image inspection output. The docker inspect command 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

  • This is a chore/configuration change, not a code change requiring tests or documentation updates.

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.
@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski merged commit 571fae5 into main Aug 16, 2026
6 checks passed
@LarsLaskowski
LarsLaskowski deleted the claude/github-release-creation-issue-woqiwa branch August 16, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants