Skip to content

Commit 353bbf4

Browse files
author
spencercjh
committed
Init
0 parents  commit 353bbf4

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
.vscode

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 |

action.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)