-
Notifications
You must be signed in to change notification settings - Fork 276
21. Jenkins. Docker and Pod
Siarhei P edited this page Jul 23, 2024
·
3 revisions
- Repository content:
- Dockerfiles with application inside
- Jenkinsfile with pipeline code
- Pipeline steps are:
- Checkout code
- Validate Dockerfile (https://github.com/hadolint/hadolint)
- Build image
- Test image (run and check if webUI of application is accessible)
- Push image to register (any)
- Deployment in two namespaces in sequence with manual approve from Jenkins WebUI
- Deploy in namespace
pre-prod
- Test if deployment done
- Display message about status of deployment and approve interface on Jenkins WebUI
- deploy in namespace
prod
- cleaning: remove deployment from
pre-prod
- Deploy in namespace
- Notification