This post will explore publishing a very simple Docker image to Docker Hub in a simple CI pipeline. I used a couple similar posts and documentation for reference while setting this up:
Building your first Docker image with Jenkins 2: Guide for developers How To Build Docker Images Automatically With Jenkins Pipeline Using a Jenkinsfile You can find my repository for this post here:
https://github.com/csuttles/dockerci
Overview The CI pipeline built in this post is something like this: