domdomegg/aws-ses-v2-local

Upload Docker Image to container registry

Opened this issue · 1 comments

Description

It would be great if the aws-ses-v2-local Docker image could be built and uploaded to DockerHub via GitHub Actions. This would make it much easier to integrate the image into various workflows without the need to build it manually each time.

Benefits

  • Streamlined integration with CI/CD pipelines.
  • Simplified usage for developers by allowing direct pulls from DockerHub.
  • Reduced setup time for new contributors and users of this project.
  • Validation that the provided Dockerfile in the repository builds correctly.

Considerations

Should the Docker image be built and pushed to DockerHub with every commit, only on new releases, or both? (Implementing both could provide the latest images for project-development purposes and stable images for general use.)

Thank you for considering this!

Thanks! Would be happy to accept a contribution for this. I think I'd prefer if it could be integrated into the package.json scripts as much as possible (rather than in GitHub Actions directly - so GitHub Actions just provides creds and calls something like npm run publish:docker).

I think the Dockerfile itself might be tidied up a little to comply with best practices for Dockerised node apps too (in terms of security, image size). But this can be done separately.