/image-sync

sync image tags to another

Primary LanguageGoApache License 2.0Apache-2.0

image-sync

sync image tags to another registry

config are like below:

apiVersion: v1
sync:
  from:
    registry: registry.a.com
    username: admin
    password: xxxx
  to: 
    registry: docker.io
    apiUrl:  registry-1.docker.io # if api url is different registry should define it.
    username: root
    password: yyyy
  names:
  - "framework/notify-service"
  - "framework/api-gateway"
  replace:
    - old: framework
      new: vinkdong
  rules:
  - name: release
    value: "^v?(\\d+.)*\\d+$"

this program can sync registry.a.com/framework/notify-service all tag that match regex "^v?(\\d+.)*\\d+$" to registry.b.com/vinkdong/notify-service, we can config rule very simply as config file shown.

just add additional flag -d to run as daemon.

./image-sync sync -c config.yml -d