Skip to content

Build pinned redfish_exporter release image for ECR - #1

Merged
GenPage merged 1 commit into
mainfrom
dylan/com-1123-patch-redfish_exporter-to-read-the-pegatron-b300-bmcs
Oct 1, 2026
Merged

GenPage merged 1 commit into
mainfrom
dylan/com-1123-patch-redfish_exporter-to-read-the-pegatron-b300-bmcs

Conversation

@GenPage

@GenPage GenPage commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a release Dockerfile that builds the exporter from source for linux/amd64 and linux/arm64, with CA roots in a nonroot runtime image. No upstream Go source changes.
  • Add an ECR workflow: PRs and default manual runs build only; an explicit manual run from main publishes unmodified upstream v0.8.2 at c40a89fba445df65bb9cc8102b04b9d63120cae6; later fork v* tags publish their tagged source.
  • Publish only a version tag to the configured ECR repository, refuse an existing tag, and record the source SHA plus verified ECR digest in the run summary. No latest tag.

Prerequisites

  • Set this repository's Actions variables ECR_PUSH_ROLE_ARN and AWS_REGION.
  • The first publish is a separate, explicit workflow_dispatch from main with publish=true after this PR merges and prerequisites exist. This PR does not push an image or change a cluster.

Verification

  • actionlint passed on the final workflow.
  • Pinned upstream v0.8.2 compiled as static linux/amd64 and linux/arm64 binaries using the Dockerfile's Go build flags.
  • Workflow YAML parsed, ECR tag-existence expression exercised with present and absent tags, and git diff --check passed.
  • Upstream go test ./cmd/redfish-exporter failed in the existing TestRunServer/SIGTERM_via_serverErr_path_ shutdown assertion on macOS; the targeted rerun failed the same way. No upstream code was changed.
  • Docker Desktop was paused, so the container build and runtime were not tested locally. ECR publication and digest verification remain untested until the manual release.

@semanticdiff-com

semanticdiff-com Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  .github/workflows/release-ecr.yml  0% smaller
  Dockerfile.release Unsupported file format
  README.md Unsupported file format

@GenPage
GenPage marked this pull request as ready for review October 1, 2026 19:18
@GenPage
GenPage merged commit 40e4e16 into main Oct 1, 2026
5 checks passed
@GenPage
GenPage deleted the dylan/com-1123-patch-redfish_exporter-to-read-the-pegatron-b300-bmcs branch October 1, 2026 19:53
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.

1 participant