# docker-image-promote **Repository Path**: chamhaw/docker-image-promote ## Basic Information - **Project Name**: docker-image-promote - **Description**: A plugin for drone to pull Docker images and publish them to another container registry. - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # image-promote Image-promote plugin to pull Docker images and publish them to another container registry. ## Build Build the binary with the following commands: ```sh sh .build.sh ``` ## Docker Build the Docker image with the following commands: ```sh docker build --rm=true -t plugins/image-promote . ``` ## Usage Execute from the working directory: ```sh docker run --rm \ -e PLUGIN_TAG=TAG \ -e PLUGIN_PUSH_REPO=IMAGE_TO_PUSH \ -e PLUGIN_PUSH_REGISTRY=REGISTRY1 \ -e PLUGIN_PUSH_USERNAME=USERNAME1 \ -e PLUGIN_PUSH_PASSWORD=PASSWORD1 \ -e PLUGIN_PULL_REPO=IMAGE_TO_PULL \ -e PLUGIN_PULL_REGISTRY=REGISTRY2 \ -e PLUGIN_PULL_USERNAME=USERNAME2 \ -e PLUGIN_PULL_PASSWORD=PASSWORD2 \ -e PLUGIN_INSECURE_REGISTRIES=REGISTRY1,REGISTRY2 \ -v $(pwd):$(pwd) \ -w $(pwd) \ --privileged \ plugins/image-promote ```