image-sync

command module
v0.0.0-...-e6735e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL