forked from WeiyiGeek/action-sync-images
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.4 KB
/
sync-images-dockerHub-example..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
# 工作流名称
name: Sync-Images-to-DockerHub-Example
# 工作流运行时显示名称
run-name: ${{ github.actor }} is Sync Images to DockerHub.
# 怎样触发工作流
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 工作流程任务(通常含有一个或多个步骤)
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 Docker Hub
uses: docker/login-action@v2.2.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: 542352519@qq.com
password: Aa12300114
logout: false
- name: Use Skopeo Tools Sync Image to Docker Hub
run: |
skopeo copy docker://docker.io/frooodle/s-pdf:latest docker://registry.cn-hangzhou.aliyuncs.com/wintsa/s-pdf:latest
skopeo copy docker://docker.io/jxxghp/moviepilot:latest docker://registry.cn-hangzhou.aliyuncs.com/wintsa/moviepilot:latest
skopeo copy docker://docker.io/xhongc/music_tag_web:latest docker://registry.cn-hangzhou.aliyuncs.com/wintsa/music_tag_web:latest
skopeo copy docker://docker.io/amilys/embyserver:beta docker://registry.cn-hangzhou.aliyuncs.com/wintsa/music_tag_web:beta