Skip to content

Automatically sync conatiner images between registries through Github Action

License

Notifications You must be signed in to change notification settings

hhyasdf/image-sync-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatically sync conatiner images between registries through Github Action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages