Drone plugins > Image Migration
This plugin allows you to migrate a docker image from one registry to another. Supports AWS ECR, GCR, and Docker Hub.
Example
kind: pipeline
name: default
steps:
- steps:
name: image_migration
image: plugins/image-migration
settings:
source: aws_account_id.dkr.ecr.us-west-2.amazonaws.com/gitness-dev:1.2.3
destination: aws_account_id.dkr.ecr.us-west-2.amazonaws.com/gitness-prod:1.2.3
username: AWS
aws_access_key_id: "012345678901"
aws_secret_access_key: <+secrets.getValue("aws_secret_access_key")>
aws_region: us-west-2
overwrite: true
Properties
source
stringrequiredthe source image to be copied
Default: none
username
stringrequireddestination registry username
Default: none
password
stringoptionaldestination registry PAT / access token
Secret recommendedDefault: none
destination
stringrequireddestination where the image will be copied
Default: none
source_username
stringoptionalsource registry username (if different from destination)
Default: none
source_password
stringoptionalsource registry PAT / access token (if different from destination)
Secret recommendedDefault: none
aws_access_key_id
stringoptionalAWS access key ID (if using AWS)
Secret recommendedDefault: none
aws_secret_access_key
stringoptionalAWS secret access key (if using AWS)
Secret recommendedDefault: none
aws_region
stringoptionalAWS region (if using AWS)
Default: none
overwrite
booleanoptionaloverwrite the destination image if it already exists
Default: false
insecure
booleanoptionalallow insecure image transfer
Default: false