- build docker image
- tag docker image
- push docker image to registry
cdp docker [--image-tag=[branch-name|,latest|,sha1]] [--push-on=[gitlab|aws-ecr]] [[--simulate-merge-on=branch_name]]Parameters
--image-tag=(optional) tag docker image, values can any or some of:branch-nametag docker image with branch name (default), using $XXXX environment variable (default)latesttag docker image with 'latest'sha1tag docker image with commit sha1, using $XXXX environment variable
Example: --image-tag=branch-name,latest
-
--simulate-merge-on=(optional) Build docker image with the merge current branch on specify branch (no commit) -
--push-on=(optional)gitlabuse gitlab registry (default)aws-ecruse k8s configuration for AWS ECR
- Generate helm chart
- Configure Kubernetes to pull image from
pull-from - Deploy it on Kubernetes
cdp k8s [--image-tag=[branch-name|sha1|latest]] [--pull-from=[gitlab|aws-ecr] [--namespace=[branch-name|project-name]] [--deploy-spec-dir=charts/]-
--image-tag=(optional)branch-nameuse specified image tag, using $XXXX environment variable (default)latestuse 'latest' tagsha1use sha1 commit tag, using $XXXX environment variable
Example:
--image-tag=branch-name,latestwill pull the docker image with the branch name specified by $XXXXX environment variable. -
--pull-from=(optional) from where to pull the imagegitlabuse gitlab registry (default)aws-ecruse Kubernetes configuration for AWS ECR
-
--namespace=(optional) which namespace to deploy the image to, values can be any of:project-branch-nameuse project and branch name to create k8s namespace (default)project-nameuse project name to create k8s namespace
-
--deploy-spec-dir=(optional) k8s deployment files, default: charts/