-
Notifications
You must be signed in to change notification settings - Fork 0
Jenkins pipeline
Omar Mokhtar edited this page Jun 15, 2023
·
3 revisions
Using the Jenkinsfile
the pipeline builds the app and creates a docker image and adds it to a docker hub.
The pipeline consists of 3 stages as follows.
at this stage, we build the app using the Dockerfile
and create a docker image that contains the latest version of our application.
The pipeline displays if any error happened during the build and reports that an error happened like the following example.
We login into the docker hub account using the saved credentials.
after a successful build, the new image will be pushed to omarmokhtar99/go-docker-app
.