-
Notifications
You must be signed in to change notification settings - Fork 369
58 lines (58 loc) · 1.69 KB
/
actions.yml
File metadata and controls
58 lines (58 loc) · 1.69 KB
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
name: sync images
on:
schedule:
- cron: '0 */12 * * *'
jobs:
aliyun-to-dockerhub:
runs-on: ubuntu-20.04
container: setzero/images-sync:0.3.1
env:
TO_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
TO_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- name: sync dockerhub images
run: |
cat << EOF >config.yaml
from:
registry: https://registry.cn-shanghai.aliyuncs.com
to:
registry: https://registry-1.docker.io
names:
- c7n/cibase
- c7n/javabase
- c7n/frontbase
- c7n/mysql-client
- c7n/choerodon-front
- c7n/devops-service
- c7n/gitlab-service
- c7n/workflow-service
- c7n/choerodon-cluster-agent
- c7n/choerodon-register
- c7n/choerodon-platform
- c7n/choerodon-admin
- c7n/choerodon-iam
- c7n/choerodon-asgard
- c7n/choerodon-swagger
- c7n/choerodon-gateway
- c7n/choerodon-oauth
- c7n/choerodon-monitor
- c7n/choerodon-file
- c7n/choerodon-message
- c7n/choerodon-front-hzero
- c7n/api-gateway
- c7n/asgard-service
- c7n/file-service
- c7n/base-service
- c7n/manager-service
- c7n/notify-service
- c7n/oauth-server
- c7n/go-register-server
- c7n/code-repo-service
- c7n/prod-repo-service
replace:
- old: c7n
new: choerodon
rules:
- '.*'
EOF
sync-images --config config.yaml