Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.26 KB

Image Sync Action

  • Use image-syncer to sync images between docker registries.

How to use

Typical Use Case

- name: Checkout
  uses: actions/checkout@v3
- uses: hhyasdf/[email protected]
  with:
    auth_file: ./auth.yaml # The auth information file of registries, optional.
    images_file: ./images.yaml # The images file descirbes which images need to sync, always needed.
    version: latest # The version of image-syncer, use the latest version if not specified.
    proc: 6 # The max number of goroutines to sync images, default value is 5.
  env:
    TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }} # For safty consideration, passing registry password by github action secrets is needed.

To use the TEST_PASSWORD environment variable as a password, the auth file needs to include something like:

registry.cn-beijing.aliyuncs.com:
  username: test
  password: ${TEST_PASSWORD}

For more information of how to create an auth file or images file, refer to the image-syncer configure files.

Example

image-sync-action-example