I've some experiment with the https://github.com/wingyplus/kaogeek-discord-bot that's forked from https://github.com/creatorsgarten/kaogeek-discord-bot. My goal is trying to replace the Dockerfile defined in https://github.com/creatorsgarten/kaogeek-discord-bot/blob/main/Dockerfile. But the problem that I quite stuck here is:
- I develop on local machine, I need to save image to check the details in the image. The current workflow is I need to call
exportapi to export the tarball file, load the image and then tagging it withdocker. The question is how do I combine those steps into single step for developer convenience. - How to design the program to do
publishandexportthe image at the same time? Currently, I've thought about the program must have something like env var, flag or argument to tell the program to publish or export the image or calling it both.
How do you solve those problems above?
In case you need to see the pipeline. It's here https://github.com/wingyplus/kaogeek-discord-bot/blob/dagger/deployment/deployment.mts
Thank you.