-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (43 loc) · 1.77 KB
/
image-sync.yml
File metadata and controls
53 lines (43 loc) · 1.77 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
# 工作流名称
name: Sync-Images-to-Aliyun Container Registry
on:
push:
branches: [master]
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
inputs:
name:
description: "Reason"
required: true
default: "Why??"
# 工作流程任务(通常含有一个或多个步骤)
jobs:
syncimages:
runs-on: ubuntu-latest
steps:
- name: Checkout Repos
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.1
- name: Login to ALIYUN CR
uses: docker/login-action@v3
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIYUNCR_USERNAME }}
password: ${{ secrets.ALIYUNCR_PASSWORD }}
- name: Use Skopeo Tools Sync Image to Aliyun Image
run: |
#!/usr/bin/env bash
## wodby/mariadb
skopeo copy docker://wodby/mariadb:11.4 docker://registry.cn-hangzhou.aliyuncs.com/davyin/wodby-mariadb:11.4
## wodby/varnish
skopeo copy docker://wodby/varnish:6 docker://registry.cn-hangzhou.aliyuncs.com/davyin/wodby-varnish:6
## bitnami/redis
skopeo copy docker://bitnamilegacy/redis:6.2 docker://registry.cn-hangzhou.aliyuncs.com/davyin/bitnami-redis:6.2
skopeo copy docker://bitnamilegacy/redis:7.4 docker://registry.cn-hangzhou.aliyuncs.com/davyin/bitnami-redis:7.4
skopeo copy docker://bitnamilegacy/redis:8.2 docker://registry.cn-hangzhou.aliyuncs.com/davyin/bitnami-redis:8.2
## mysql
skopeo copy docker://library/mysql:8.4 docker://registry.cn-hangzhou.aliyuncs.com/davyin/mysql:8.4
## autoheal
skopeo copy docker://willfarrell/autoheal docker://registry.cn-hangzhou.aliyuncs.com/davyin/autoheal