Docker build/push with declarative pipeline in Jenkins
Here is a quick and full example to build a docker image from private GitHub repo and push to docker hub with declarative pipeline in Jenkins.
I created a sample repo with basic Dockerfile and Jenkinsfile
$ cat DockerfileFROM ubuntu:20.04
RUN apt up...
mrdevops.hashnode.dev6 min read