Skip to content

Github Action to push a docker image from one registry to another

License

Notifications You must be signed in to change notification settings

alex289/docker-image-transfer-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image Transfer Action

This GitHub Action pulls a Docker image from a source registry and pushes it to a destination registry.

Usage

Add the following step to your GitHub Actions workflow:

Note

If you need to login to the registry first set these inputs:

  • source_registry_username
  • destination_registry_username
  • source_registry_password
  • destination_registry_password
- name: Transfer Docker image
  uses: alex289/docker-image-transfer-action
  with:
    source: 'docker.io/user/source-repo:tag'
    destination: 'docker.io/user/destination-repo:tag'

Replace docker.io/user/source-repo:tag and docker.io/user/destination-repo:tag with your source and destination Docker image repositories, respectively.

Inputs

  • source: The source Docker image repository (e.g.: docker.io/user/source-repo:tag). This input is required.
  • destination: The destination Docker image repository (e.g.: docker.io/user/destination-repo:tag). This input is required.

License

This project is licensed under the MIT License. See the LICENSE file for details.