Skip to main content

Promote docker image

This guide shows you how to perform a promotion of images to prod and pre prod environments in DWP

Promotion repo for AkerBP https://gitlab.com/ds365ai/snowleopard/image-promotion

After a Build microservice image pipeline job is completed. Go to the logs and find

#30 naming to docker.io/dwp-webapp/17.0.0/abp242-kicktolfix-preprod-deliver:17.0.0-abp242-kicktolfix-preprod-deliver.359 done
#30 DONE 10.3s
$ docker tag ${BUILD_IMAGE} ${LATEST_IMAGE}
$ docker tag ${BUILD_IMAGE} ${SNOWLEOPARD_IMAGE_REPO}:${IMAGE_TAG}
$ docker push ${SNOWLEOPARD_IMAGE_REPO}:${IMAGE_TAG}
The push refers to repository [snowleopard-docker-snapshots.repo.ds365.ai/snowleopard/dwp-webapp]

The following line shows the image name and tag

naming to docker.io/dwp-webapp/17.0.0/abp242-kicktolfix-preprod-deliver:17.0.0-abp242-kicktolfix-preprod-deliver.359

in this case the image tag is: 17.0.0-abp242-kicktolfix-preprod-deliver.359

go to the image-promotion repository and run a new pipeline on Dev_Integration_Branch with the following input (adjust to your required input e.g microservices or webapp/db-utility)

Pipeline input

When the pipeline is done you can use the images in e.g while deploying to preprod

Connecting...