File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
2
+ .vscode
Original file line number Diff line number Diff line change
1
+ # Skopeo Copy Action
2
+
3
+ Reference: [ Copying images] ( https://github.com/containers/skopeo#copying-images )
4
+
5
+ Copy image from src to dst.
6
+
7
+ ## Inputs
8
+
9
+ | Input parameter name | Description | Example |
10
+ | ----------------------| --------------------------------------------------------------------------| -----------------------------------------------------------|
11
+ | src-image | source image with tag to copy from | coseus.azurecr.io/platform: latest |
12
+ | src-creds | credentials with format: [ USERNAME] :[ PASSWORD] to pull source image | username: password |
13
+ | dst-image | destination image with tag to copy to | registry.cn-hangzhou.aliyuncs.com/coscene/platform: latest |
14
+ | dst-creds | credentials with format: [ USERNAME] :[ PASSWORD] to push destination image | username: password |
Original file line number Diff line number Diff line change
1
+ name : ' skopeo-copy-action'
2
+ description : ' Copy image from src to dst by Skopeo'
3
+
4
+ branding :
5
+ color : blue
6
+ icon : copy
7
+ inputs :
8
+ src-image :
9
+ description : " source image with tag to copy from"
10
+ required : true
11
+ src-creds :
12
+ description : " credentials with format: [USERNAME]:[PASSWORD] to pull source image"
13
+ required : true
14
+ dst-image :
15
+ description : " destination image with tag to copy to"
16
+ required : true
17
+ dst-creds :
18
+ description : " credentials with format: [USERNAME]:[PASSWORD] to push destination image"
19
+ required : true
20
+
21
+ runs :
22
+ using : " composite"
23
+ steps :
24
+ - run : skopeo copy --src-creds ${{ inputs.src-creds }} --dest-creds ${{ inputs.dst-creds }} docker://${{ inputs.src-image }} docker://${{ inputs.dst-image }}
25
+ shell : bash
You can’t perform that action at this time.
0 commit comments