Skip to content

Publish images through GHCR and the image mirror - #35

Merged
samcm merged 2 commits into
masterfrom
image-mirror
Nov 23, 2026
Merged

samcm merged 2 commits into
masterfrom
image-mirror

Conversation

@samcm

@samcm samcm commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Releases and master builds no longer need a Docker Hub token, and the release workflow now works with OSS goreleaser.

Release workflow (goreleaser.yaml)

  • The whole release now runs in one job on ubuntu-latest. The self-hosted build matrix (cross build per target, then an artifact hand-off) is gone.
  • The binaries are built by goreleaser's OSS rust builder instead of builder: prebuilt, which only GoReleaser Pro supports while the workflow ran OSS goreleaser. It cross-compiles x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu with cargo zigbuild on the runner. The job installs clang and llvm (for the BPF programs in build.rs), Zig 0.14.1 and cargo-zigbuild 0.24.1. GIT_COMMIT is still set from the commit.
  • The targets carry a .2.28 glibc suffix, so the binaries need glibc 2.28 or newer whatever the runner's glibc is. They run on the debian:bookworm-slim image.
  • The binary inside the archives is now named observoor rather than observoor-<version>, because the rust builder takes the binary from cargo's output. The image Dockerfile copies observoor*, so the images are unaffected.
  • Goreleaser pushes to ghcr.io/ethpandaops/observoor with the job's own GITHUB_TOKEN.
  • An Attest images step in the release job attests the pushed digests. A separate mirror job then asks the image mirror to copy exactly those digests to docker.io/ethpandaops/observoor, and only goes green once they're on Docker Hub. If the mirror fails, "Re-run failed jobs" retries only the mirror and never rebuilds the images.

master-build.yaml pushes master and master-<sha> to GHCR, then attests the pushed digest and mirrors both tags in the same job. Runs now queue instead of overlapping, since every run moves master.

The Docker Hub image names and tags are unchanged.

Tested: a copy of the release job ran on ubuntu-latest against a local registry (tag v99.0.0, GitHub release disabled). Both binaries built, both need at most GLIBC_2.28, all five tags were pushed (99.0.0-amd64, 99.0.0-arm64v8, 99.0.0, 99.0.0-arm64, latest), and both platform images started and printed their usage. OSS goreleaser check now passes; on master it rejects the config.

Once a release has gone through, the repo's DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets can be removed. Nothing in this repo uses them after this PR.

Same approach as ethpandaops/ethereum-address-metrics-exporter#70 and ethpandaops/ethereum-address-metrics-exporter#71, which went through end to end on real releases. Needs the IMAGE_MIRROR_URL organization secret, which is already in place.

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moves image publishing to GHCR for releases and master builds, with attestation and a mirror step that copies digests to Docker Hub (release mirrors are split into their own re-runnable job). The workflows follow the documented mirror-image pattern (matching the proven ethpandaops implementations) and the action inputs/outputs/permissions line up at the pinned SHA; the known limitations (self-hosted binary compilation, GoReleaser Pro config) are disclosed in the PR description.


Reviewed 3 changed file(s) @ 2e0a20e0 — no blocking issues found.
"Async by default."

@redpandabot

redpandabot Bot commented Nov 21, 2026

Copy link
Copy Markdown

CI failed @ 5c2b5c0d

One failed job: E2E Client Detection / e2e-kubernetes. The failure is in the Kurtosis network startup, where the external Besu container crashed with a JVM internal error and SIGSEGV, so port 30303 never opened and Kurtosis rolled back the batch after its port-check timeout. This PR only changes goreleaser workflow/config files and does not touch the E2E workflow or Besu image; the sibling e2e-docker job passed. The minimal fix is to re-run the failed job.

  • E2E Client Detection / e2e-kubernetes — flaky — During Kurtosis network startup, the external el-3-besu-teku Besu container crashed with a JVM Internal Error (ShouldNotReachHere) in SuspendedThreadTask::internal_do_task followed by SIGSEGV. Besu never opened port 30303, so Kurtosis timed out waiting for ports and rolled back the service batch. The PR diff only changes .github/workflows/goreleaser.yaml, .github/workflows/master-build.yaml, and .goreleaser.yaml, not the E2E workflow or Besu image; e2e-docker passed in the same run. (ci-logs/136900207586.log:79) — Re-run the failed e2e-kubernetes job. If the Besu JVM crash recurs, pin the ethereum-package/Besu image or remove that participant tag.

Diagnosed E2E Client Detection @ 5c2b5c0d
"Async by default."

@samcm
samcm merged commit bb2aca4 into master Nov 23, 2026
5 of 6 checks passed
@samcm
samcm deleted the image-mirror branch November 23, 2026 02:18
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