Skip to content

feat(cli): build and create a CTF containing the OCM CLI with multiple Architectures and Operating Systems#413

Merged
jakobmoellerdev merged 8 commits into
open-component-model:mainfrom
jakobmoellerdev:eat-our-own-dogfood
Jul 18, 2025
Merged

feat(cli): build and create a CTF containing the OCM CLI with multiple Architectures and Operating Systems#413
jakobmoellerdev merged 8 commits into
open-component-model:mainfrom
jakobmoellerdev:eat-our-own-dogfood

Conversation

@jakobmoellerdev

@jakobmoellerdev jakobmoellerdev commented Jul 16, 2025

Copy link
Copy Markdown
Member

What this PR does / why we need it

Let's try to eat our own stuff and build a component version of the OCM CLI like OCM v1 and then push our component version to a CTF.

What was added:

  • A taskfile extension that can
    • build the CLI for windows,linux,darwin(mac) in arm64,amd64
    • build a component-constructor.yaml from resource fragments
    • build a ctf based on the component-constructor.yaml containing a component version of the OCM CLI in various build formats
    • verify the ctf by downloading the resource and running the CLI again
  • An extension to OCM download resource that can (just like old ocm), use a label that hints towards a relative path under which the resource should be stored (downloadName). This path is used in favor of the resource name if found and no output name is defined.

What is missing compared to the OCM CLI v1 right now:

  • we do not have an ocmcli-image resource yet (the docker input method would be needed for this or we build the image separately and add it as an access, TBD)
  • while coding I noticed that I still need to pass the resource version as part of the identity for the download, this needs to be fixed up (on this right now, but this is part of a fix for the OCI bindings)
  • We dont have component constructor templating (we maybe never will have) and so i am using native templating via environment variables and shell scripts

Which issue(s) this PR fixes

@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension component/github-actions Changes on GitHub Actions or within `.github/` directory size/m Medium labels Jul 16, 2025
@jakobmoellerdev jakobmoellerdev force-pushed the eat-our-own-dogfood branch 4 times, most recently from d609077 to 99f9713 Compare July 16, 2025 09:54
…ent version and pushing it to a CTF

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev changed the title feat(cli): build and create a CTF containing the OCM CLI feat(cli): build and create a CTF containing the OCM CLI with multiple Architectures and Operating Systems Jul 16, 2025
@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review July 16, 2025 15:12
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner July 16, 2025 15:12
Skarlso
Skarlso previously approved these changes Jul 17, 2025
@jakobmoellerdev jakobmoellerdev enabled auto-merge (squash) July 18, 2025 19:03
@jakobmoellerdev jakobmoellerdev merged commit a0060b7 into open-component-model:main Jul 18, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/github-actions Changes on GitHub Actions or within `.github/` directory kind/feature new feature, enhancement, improvement, extension size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants