-
Notifications
You must be signed in to change notification settings - Fork 223
33 lines (32 loc) · 1.02 KB
/
copy.yml
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
name: Copy Docker Image
on:
workflow_dispatch:
inputs:
source:
description: '镜像源 (Registry)'
required: true
default: 'docker.io'
destination:
description: '目标源 (Registry)'
required: true
default: 'registry.cn-beijing.aliyuncs.com'
source_repo:
description: '仓库及标签 (格式 repo:tag)'
required: true
default: ''
destination_repo:
description: '目标仓库及标签 (格式 repo:tag)'
required: true
default: ''
jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Copy Docker Images
uses: ikrong/docker-sync-action@main
with:
source: ${{ github.event.inputs.source }}
source-credential: ${{ secrets.SOURCE_CREDENTIAL }}
destination: ${{ github.event.inputs.destination }}
destination-credential: ${{ secrets.DESTINATION_CREDENTIAL }}
copy: "${{ github.event.inputs.source_repo }} ${{ github.event.inputs.destination_repo }}"