Categorygithub.com/vinkdong/image-sync
modulepackage
0.0.0-20191103164648-e6735e4f3a03
Repository: https://github.com/vinkdong/image-sync.git
Documentation: pkg.go.dev

# README

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 

# Packages

No description provided by the author
No description provided by the author