Replace git branch artifact storage with ghcr.io ORAS#362
Open
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
Open
Replace git branch artifact storage with ghcr.io ORAS#362ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
ColtonWilley wants to merge 2 commits intowolfSSL:masterfrom
Conversation
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>
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.
Summary
The wolfProvider repo has grown to ~13 GB because the
debsandwicsorphan branches store nightly CI artifacts (Debian packages and Yocto WIC images) in git history. Everygit clonedownloads 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:.debpackages fromghcr.io/wolfssl/wolfprovider/debs:{fips,nonfips,openssl-default,openssl-replace-default}via ORAS instead of checking out thedebsbranchghcr.io/wolfssl/wolfprovider/wics:{fips,nonfips}-{standalone,replace-default}via ORAS instead of checking out thewicsbranch, with split-file reassembly and decompression.debor.wicfiles are missing after pullStatus
debian-exportpushes to ghcr.io (build Problems with WolfSSL and OpenSSH via WolfProvider #135 -- all 4 deb tags live)yocto-wic-exportpushes to ghcr.io (build Zero pad to signature length for RSA X931 #91 -- all 4 WIC tags live)wolfprovider/debspackage linked to repo (admin done -- 152+ downloads from CI)wolfprovider/wicspackage needs linking to repo by org admin (same as debs -- Package settings -> Manage Actions access -> Add wolfSSL/wolfProvider with Read)Companion changes
ColtonWilley/testingbranchoras-migration): Bothdebian-exportandyocto-wic-exportJenkinsfiles now dual-push to git branches AND ghcr.io. Once this PR is validated, the git push stages can be removed.Rollout plan
Jenkins dual-push (git + ghcr.io)-- done for both debs and WICsThis PR -- GH Actions pulls from ghcr.io-- working (367/370 CI checks pass)wolfprovider/wicspackage to wolfSSL/wolfProvider repodebsandwicsbranchesTest plan
wolfprovider/wicspackage is linked by admin