Open emerconn opened 2 months ago
Currently, the Dockerfile contains instructions to build the Go app, and then create an image for publishing.
The building of the app can be pulled out of Dockerfile, and replace with a workflow.
This workflow can also run tests, ensuring that an image isn't built unless tests pass.
to take this even further, the binary built from the Go workflow could be cached and used for the container image workflow.
Currently, the Dockerfile contains instructions to build the Go app, and then create an image for publishing.
The building of the app can be pulled out of Dockerfile, and replace with a workflow.
This workflow can also run tests, ensuring that an image isn't built unless tests pass.