-
Notifications
You must be signed in to change notification settings - Fork 112
82 lines (81 loc) · 3.39 KB
/
sync.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: seamoon-package
on:
workflow_call:
secrets:
ALIYUN_USERNAME:
required: true
ALIYUN_PASSWORD:
required: true
TENCENT_USERNAME:
required: true
TENCENT_PASSWORD:
required: true
jobs:
sync-aliyun:
name: sync-aliyun
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: false
matrix:
registry: [ registry.cn-hangzhou.aliyuncs.com,
registry.cn-shanghai.aliyuncs.com,
registry.cn-qingdao.aliyuncs.com,
registry.cn-beijing.aliyuncs.com,
registry.cn-zhangjiakou.aliyuncs.com,
registry.cn-huhehaote.aliyuncs.com,
registry.cn-shenzhen.aliyuncs.com,
registry.cn-chengdu.aliyuncs.com,
registry.cn-hongkong.aliyuncs.com,
registry.ap-northeast-1.aliyuncs.com,
registry.ap-southeast-1.aliyuncs.com,
registry.ap-southeast-2.aliyuncs.com,
registry.ap-southeast-3.aliyuncs.com,
registry.ap-southeast-5.aliyuncs.com,
registry.ap-south-1.aliyuncs.com,
registry.eu-central-1.aliyuncs.com,
registry.eu-west-1.aliyuncs.com,
registry.us-west-1.aliyuncs.com,
registry.us-east-1.aliyuncs.com
]
repo: [seamoon]
steps:
- uses: actions/checkout@v4
- name: skopeo-copy
run: |
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.ALIYUN_USERNAME }}:${{ secrets.ALIYUN_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ${{ matrix.registry }}/${{ matrix.repo }}
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.ALIYUN_USERNAME }}:${{ secrets.ALIYUN_PASSWORD }} docker.io/dvkunion/seamoon:latest ${{ matrix.registry }}/${{ matrix.repo }}
package-tencent:
name: package-tecent
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: false
matrix:
registry: [ hkccr.ccs.tencentyun.com,
inccr.ccs.tencentyun.com,
sgccr.ccs.tencentyun.com,
thccr.ccs.tencentyun.com,
krccr.ccs.tencentyun.com,
jpccr.ccs.tencentyun.com,
deccr.ccs.tencentyun.com,
useccr.ccs.tencentyun.com,
uswccr.ccs.tencentyun.com
]
repo: [seamoon]
steps:
- uses: actions/checkout@v4
- name: skopeo-copy
run: |
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ${{ matrix.registry }}/${{ matrix.repo }}
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:latest ${{ matrix.registry }}/${{ matrix.repo }}
package-tencent-inbound:
name: package-tecent-inbound
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: skopeo-copy
run: |
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:${{github.ref_name}} ccr.ccs.tencentyun.com/dvkunion
skopeo sync --src docker --dest docker --dest-creds ${{ secrets.TENCENT_USERNAME }}:${{ secrets.TENCENT_PASSWORD }} docker.io/dvkunion/seamoon:latest ccr.ccs.tencentyun.com/dvkunion