Closed ronaldtse closed 2 years ago
We need to find a way how we can share docker imaged between jobs https://github.community/t/whats-the-recommended-way-to-pass-a-docker-image-to-the-next-job-in-a-workflow/17225/11
Research in progress...
@CAMOBAP isn't GHA's matrix functionality perfect for this? Then we can separate failures by the flavor as well.
docker save/load not works for image 2.2Gb, reviewing docker image to find potential to minimize it
After https://github.com/metanorma/metanorma-docker/pull/114 it becomes a bit less 1.85Gb
This workflow is a perfect example on how we can build the image, upload as artifact (with minimal retention-days
), then run tests on the containers, before releasing them.
https://github.com/docker/build-push-action/blob/master/docs/advanced/share-image-jobs.md
And this is "test before push": https://github.com/docker/build-push-action/blob/master/docs/advanced/test-before-push.md
And this is building multiple platforms at the same time: https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
https://github.com/metanorma/metanorma-docker/blob/e5dd3597091ca95211f88b8bb38ef6b240939eb6/Makefile#L121-L125