Is it possible to omit using of Docker Hub and any docker image repo/registry to use a docker image in GitHub Actions?
I have a self-hosted runner Linux PC which is able to create my own docker image in any time. Is it possible to make a GitHub Action which in the first step create a docker image
then in further steps everything is executed in this self-created docker image?
Of course, in the end of the full GitHub action/workflow self-created docker image should be removed and cleaned up everything.
In most of tutorial and blog site, there is only info about how can publish docker image to any registry via GitHub Action. I can not find any similar solutions. :(
Edit: Summary my goal is the following in a GitHub action of my SW project:
- git clone my dockerfile from a 3rd party git url
- build my docker (self-create an image)
- run my docker then start to build my SW project in it
- Zip my binary outputs and upload to any artifacts (like pypi, nuget etc)
- destroy my self-created docker image forever (next time it will be created again)