upbound / up

The @upbound CLI
Apache License 2.0
51 stars 41 forks source link

Add support for local .tar images in xpkg build #385

Closed JonasKs closed 10 months ago

JonasKs commented 10 months ago

What problem are you facing?

We're using podman in our pipelines, and unfortunately local built tar images isn't supported (as seen here).

Using your function xpkgFetch, and a hard-coded path as seen here we were able to build using podman. The flow currently looks like this:

podman build .
      --file ci/docker/Dockerfile
      --tag $IMAGE_NAME:latest
podman save -o local_image.tar $IMAGE_NAME:latest
./up xpkg build
      --package-root package
      --controller $IMAGE_NAME:latest
      --output my_provider.xpkg

How could Upbound help solve your problem?

Add a parameter that allow us to specify a local .tar.