Skip to content

Commit

Permalink
Update Jenkinsfile to add ECR staging registry (#713)
Browse files Browse the repository at this point in the history
### Description
Update Jenkinsfile to add ECR staging registry

### Issues Resolved
Part of
#709
and
#674

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi authored Feb 1, 2024
1 parent e41fcb1 commit 2b88183
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 2b88183

Please sign in to comment.