Skip to content

wintsa123 is Sync Images to DockerHub. #3

wintsa123 is Sync Images to DockerHub.

wintsa123 is Sync Images to DockerHub. #3

# 工作流名称
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