-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yaml
37 lines (37 loc) · 1.5 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Image Sync Action"
description: "Automatically sync conatiner images between registries through Github Action"
inputs:
version:
description: "The version of image-syncer"
default: "latest"
required: false
auth_file:
description: "The --auth parameter of image-syncer, auth file path. This flag need to be pair used with --images"
required: false
images_file:
description: "The --images parameter of image-syncer, images file path. This flag need to be pair used with --auth"
default: "./images.yaml"
required: true
arch:
description: "The --arch parameter of image-syncer, architecture list to filter source tags, not works for OCI media"
required: false
os:
description: "The --os parameter of image-syncer, os list to filter source tags, not works for docker v2 schema1 and OCI media"
required: false
proc:
description: "The --proc parameter of image-syncer, numbers of working goroutines (default 5)"
default: 5
required: false
retries:
description: "The --retries parameter of image-syncer, times to retry failed task (default 2)"
default: 2
required: false
runs:
using: "composite"
steps:
- id: download
run: ${{ github.action_path }}/download.sh ${{ inputs.version }}
shell: bash
- id: execute
run: ./image-syncer --auth=${{ inputs.auth_file }} --images=${{ inputs.images_file }} --arch=${{ inputs.arch }} --os=${{ inputs.os }} --proc=${{ inputs.proc }} --retries=${{ inputs.retries }}
shell: bash