Skip to content
cloud

GitHub Action

Sync Docker Image to Registry

1.1.0 Latest version

Sync Docker Image to Registry

cloud

Sync Docker Image to Registry

pull an image from one registry and push to another

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Sync Docker Image to Registry

uses: onichandame/docker-registry-sync-action@1.1.0

Learn more about this action in onichandame/docker-registry-sync-action

Choose a version

Github Actions

A template for making new github actions.

Author

onichandame

Usage

name: Sync Registry
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Sync From Docker Hub to Aliyun
      uses: onichandame/docker-registry-sync-action@master
      with:
        source_repository: docker.io/nginx:latest
        source_username: ${{ secrets.DOCKER_USERNAME }}
        source_password: ${{ secrets.DOCKER_PASSWORD }}
        target_repository: registry.cn-shanghai.aliyuncs.com/user/nginx:latest
        target_username: ${{ secrets.ALIYUN_USERNAME }}
        target_password: ${{ secrets.ALIYUN_PASSWORD }}