-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional documentation for the copyContainer function to make it clear what source/destinations can be used. Signed-off-by: Peter Nied <[email protected]>
- Loading branch information
Showing
12 changed files
with
93 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CopyContainer_docker_Jenkinsfile.run() | ||
CopyContainer_docker_Jenkinsfile.pipeline(groovy.lang.Closure) | ||
CopyContainer_docker_Jenkinsfile.echo(Executing on agent [label:none]) | ||
CopyContainer_docker_Jenkinsfile.stage(copyImage, groovy.lang.Closure) | ||
CopyContainer_docker_Jenkinsfile.script(groovy.lang.Closure) | ||
CopyContainer_docker_Jenkinsfile.copyContainer({sourceImagePath=opensearchstaging/ci-runner:latest, destinationImagePath=opensearchproject/ci-runner:latest, destinationType=docker, destinationCredentialIdentifier=jenkins-staging-docker-prod-token}) | ||
copyContainer.sh({script=test -f /usr/local/bin/gcrane && echo '1' || echo '0' , returnStdout=true}) | ||
copyContainer.sh(docker logout) | ||
copyContainer.usernamePassword({credentialsId=jenkins-staging-docker-prod-token, usernameVariable=DOCKER_USERNAME, passwordVariable=DOCKER_PASSWORD}) | ||
copyContainer.withCredentials([[DOCKER_USERNAME, DOCKER_PASSWORD]], groovy.lang.Closure) | ||
copyContainer.sh( | ||
docker login -u DOCKER_USERNAME -p DOCKER_PASSWORD | ||
gcrane cp opensearchstaging/ci-runner:latest opensearchproject/ci-runner:latest | ||
) | ||
CopyContainer_docker_Jenkinsfile.copyContainer({sourceImagePath=opensearchstaging/ci-runner:latest, destinationImagePath=opensearchproject/ci-runner:latest, destinationType=ecr, destinationCredentialIdentifier=public.ecr.aws/p5f6l6i3, accountName=DUMMY_ACCOUNT_NAME}) | ||
copyContainer.sh({script=test -f /usr/local/bin/gcrane && echo '1' || echo '0' , returnStdout=true}) | ||
copyContainer.sh(docker logout) | ||
copyContainer.withAWS({role=Upload_ECR_Image, roleAccount=DUMMY_ACCOUNT_NAME, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) | ||
copyContainer.sh( | ||
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/p5f6l6i3 | ||
gcrane cp opensearchstaging/ci-runner:latest opensearchproject/ci-runner:latest | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.