Skip to content

Commit

Permalink
Update Jenkinsfile to add ECR staging registry
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Feb 1, 2024
1 parent e41fcb1 commit 5ef5935
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jenkins/release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pipeline {

echo("${OPERATOR_PRODUCT}: ${OPERATOR_VERSION}")

// Build and push to dockerhub staging repo https://hub.docker.com/r/opensearchstaging/opensearch-operator.
dockerBuild: {
build job: 'docker-build',
parameters: [
Expand All @@ -100,6 +101,19 @@ pipeline {
].join(' && ')),
]
}
// This is required to copy the operator to staging ECR https://gallery.ecr.aws/opensearchstaging/opensearch-operator repo as the docker-promotion job does not promote to staging ECR.
dockerCopy: {
build job: 'docker-copy',
parameters: [
string(name: 'SOURCE_IMAGE_REGISTRY', value: 'opensearchstaging'),
string(name: 'SOURCE_IMAGE', value: "${OPERATOR_PRODUCT}:${OPERATOR_VERSION}"),
string(name: 'DESTINATION_IMAGE_REGISTRY', value: 'public.ecr.aws/opensearchstaging'),
string(name: 'DESTINATION_IMAGE', value: "${OPERATOR_PRODUCT}:${OPERATOR_VERSION}")
]
}

// Promote to DockerHub Prod https://hub.docker.com/r/opensearchproject/opensearch-operator repo.
// Promote to ECR Prod https://gallery.ecr.aws/opensearchproject/opensearch-operator repo.
dockerPromotion: {
build job: 'docker-promotion',
parameters: [
Expand Down

0 comments on commit 5ef5935

Please sign in to comment.