Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

ci: Add workflow to build disk image #21

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

cgwalters
Copy link
Member

And upload to ghcr.io because for some reason this isn't working with quay.io.

@cgwalters
Copy link
Member Author

The image failure is unrelated, see #22

@cgwalters
Copy link
Member Author

See an example successful run of this here: https://github.com/cgwalters/centos-boot-layered/actions/runs/7280872408/job/19840208917

And upload to ghcr.io because for some reason this isn't
working with quay.io.

Signed-off-by: Colin Walters <[email protected]>
@cgwalters
Copy link
Member Author

cgwalters commented Dec 20, 2023

To fetch the content, today this is technically possible with skopeo but has absolutely atrocious ergonomics:

$ skopeo copy docker://ghcr.io/cgwalters/fedora-bootc-cloud-disk:eln oci:disk
$ find disk/blobs/ -type f -size -5M | xargs -r rm
$ mv disk/blobs/* fedora-bootc-cloud-eln.qcow2.zst
$ rm -rf disk

After you'll want to decompress: zstd --rm -d fedora-bootc-cloud.qcow2.zst

Or...with oras:

$ oras pull ghcr.io/cgwalters/fedora-bootc-cloud-disk:eln

(And you'll still want to decompress)

Also in all the above we'll s/cgwalters/centos-bootc/ - though I need to figure out what's blocking shipping to quay.io here, I thought they supported general artifacts.

Copy link
Contributor

@sallyom sallyom left a comment

Choose a reason for hiding this comment

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

LGTM
image build will pass when #22 merges

@cgwalters cgwalters merged commit bd09b91 into CentOS:main Dec 21, 2023
1 of 3 checks passed
@cgwalters
Copy link
Member Author

Ah OK this is failing because the GH workflow in this repository I think doesn't have permission to create packages - cc @lmilbaum

I need to dig into why quay.io is still allow-listing only certain media types which is blocking this use case of managing disk images there.

@lmilbaum
Copy link
Contributor

@cgwalters GW workflow should be working now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants