Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Don't push to any registry #431

Open
menasheh opened this issue May 5, 2023 · 5 comments
Open

Feature request: Don't push to any registry #431

menasheh opened this issue May 5, 2023 · 5 comments

Comments

@menasheh
Copy link

menasheh commented May 5, 2023

How can I build a docker image without a manual Dockerfile, but without pushing to a registry - even local? I can handle the upload myself after.

@rainersigwald
Copy link
Member

I think you're looking for #283.

@menasheh
Copy link
Author

menasheh commented May 5, 2023

More or less, but I don't need it to be tarred either.

@baronfel
Copy link
Member

@menasheh how would you use the image/layers if not TAR'd? That's the format that OCI Registries are primarily work with, can you clarify what you'd do with the non-TAR'd assets?

@menasheh
Copy link
Author

@baronfel I'm using antifactory enterprise, I'm 100% certain if its using tar.gz. Also I already have composite GitHub Actions that take care of tar and upload. So if publish was supported without that it would be simple for me to integrate with my existing build process.

Anyway I guess this is a minor detail cause I can always untar if I need to. The important part is not to rely on docker being installed if I want to publish without a registry configured.

I'm not sure why dotnet cli wants to do everything end to end. Providing fundamental pieces would give the most flexibility for diverse deployment processes.

@Sam13
Copy link

Sam13 commented Jun 22, 2023

Same here, just build the Docker image during publish but do not push it.

Besides the the flexibility to reuse existing push build logic this allows execution of other build logic before pushing.

In my case I spin up the built Docker image and execute automated system tests.
If those fail I don't push the Docker image.

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

No branches or pull requests

4 participants