Skip to content

Replace git branch artifact storage with ghcr.io ORAS#362

Open
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
ColtonWilley:wp_oras_migration
Open

Replace git branch artifact storage with ghcr.io ORAS#362
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
ColtonWilley:wp_oras_migration

Conversation

@ColtonWilley
Copy link
Contributor

@ColtonWilley ColtonWilley commented Feb 17, 2026

Summary

The wolfProvider repo has grown to ~13 GB because the debs and wics orphan branches store nightly CI artifacts (Debian packages and Yocto WIC images) in git history. Every git clone downloads all of it.

This PR migrates the GH Actions consumer side to pull artifacts from ghcr.io via ORAS instead of sparse-checking out git branches. Jenkins pushes are handled in a companion change to the testing repo.

Changes to build-wolfprovider.yml:

  • Debian path: Pull pre-built .deb packages from ghcr.io/wolfssl/wolfprovider/debs:{fips,nonfips,openssl-default,openssl-replace-default} via ORAS instead of checking out the debs branch
  • Yocto path: Pull compressed WIC images from ghcr.io/wolfssl/wolfprovider/wics:{fips,nonfips}-{standalone,replace-default} via ORAS instead of checking out the wics branch, with split-file reassembly and decompression
  • ORAS install: Download with SHA256 checksum verification
  • Artifact validation: Fail fast if expected .deb or .wic files are missing after pull
  • Shared ORAS setup: Single install + login block used by both build paths

Status

  • Jenkins debian-export pushes to ghcr.io (build Problems with WolfSSL and OpenSSH via WolfProvider #135 -- all 4 deb tags live)
  • Jenkins yocto-wic-export pushes to ghcr.io (build Zero pad to signature length for RSA X931 #91 -- all 4 WIC tags live)
  • wolfprovider/debs package linked to repo (admin done -- 152+ downloads from CI)
  • CI passing: 367/370 checks pass (3 failures are pre-existing Multi-Compiler timeout issues, unrelated to this PR)
  • wolfprovider/wics package needs linking to repo by org admin (same as debs -- Package settings -> Manage Actions access -> Add wolfSSL/wolfProvider with Read)

Companion changes

  • Jenkins testing repo (ColtonWilley/testing branch oras-migration): Both debian-export and yocto-wic-export Jenkinsfiles now dual-push to git branches AND ghcr.io. Once this PR is validated, the git push stages can be removed.

Rollout plan

  1. Jenkins dual-push (git + ghcr.io) -- done for both debs and WICs
  2. This PR -- GH Actions pulls from ghcr.io -- working (367/370 CI checks pass)
  3. Admin links wolfprovider/wics package to wolfSSL/wolfProvider repo
  4. Remove git push stages from Jenkins
  5. Delete debs and wics branches
  6. Request GitHub GC to reclaim ~11 GB

Test plan

  • CI passes on this PR (debian builds pull from ghcr.io -- 367/370 pass)
  • Yocto CI passes once wolfprovider/wics package is linked by admin
  • No regressions in downstream test workflows (bind9, curl, openssl versions, etc.)

ColtonWilley and others added 2 commits February 17, 2026 10:36
Migrate CI artifact pipeline from sparse-checkout of debs/wics git
branches to pulling OCI artifacts from ghcr.io via ORAS. This is the
pull-side (GH Actions) of the migration to shrink the repo from 13 GB
back to ~100 MB.

Changes:
- Remove debs branch sparse-checkout, replace with oras pull from
  ghcr.io/wolfssl/wolfprovider/debs:{fips,nonfips,openssl-default,
  openssl-replace-default}
- Add build_type input (debian/yocto) and yocto WIC image pull from
  ghcr.io/wolfssl/wolfprovider/wics:{fips,nonfips}-{standalone,
  replace-default}
- Centralize artifact naming via prepare_artifact_name step
- Gate debian-only steps with build_type == 'debian'

Requires Jenkins push-side to be updated to oras push before this
workflow will function. See fix-git-size.md for full migration plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Verify ORAS binary SHA256 checksum after download
- Validate .deb packages exist after pulling from ghcr.io
- Validate WIC files exist after pulling from ghcr.io
- Sort split file parts numerically before reassembly
- Add actionable error messages pointing to Jenkins jobs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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

Comments