From 135f4ba86dedf5cc2b88c6b4ead3beea23bcd3ba Mon Sep 17 00:00:00 2001 From: haobibo Date: Fri, 13 Mar 2026 14:38:21 +0800 Subject: [PATCH 1/2] update img sync dst --- README.md | 2 +- task-sync-docker-images/images.yaml | 36 ++++++++++++++--------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 875293d..9b068fe 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository provides an automated GitHub Actions workflow to sync container images from source registries to mirror registries. It is designed for teams that need repeatable, auditable image mirroring using a simple YAML configuration. -中文介绍: `README-zh_CN.md` +[中文介绍](README-zh_CN.md) ## What This Project Does diff --git a/task-sync-docker-images/images.yaml b/task-sync-docker-images/images.yaml index 7c0815f..2f23427 100644 --- a/task-sync-docker-images/images.yaml +++ b/task-sync-docker-images/images.yaml @@ -3,8 +3,8 @@ # nvidia/cuda: https://hub.docker.com/r/nvidia/cuda/tags docker.io/nvidia/cuda:12.6.3-cudnn-devel-ubuntu24.04,12.4.1-cudnn-devel-ubuntu22.04,12.0.1-cudnn8-devel-ubuntu22.04,11.8.0-cudnn8-devel-ubuntu22.04,11.2.2-cudnn8-devel-ubuntu20.04: - quay.io/labnow/nvidia-cuda - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/nvidia-cuda - - registry.cn-beijing.aliyuncs.com/labnow-ai/nvidia-cuda + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/nvidia-cuda + - registry.cn-beijing.aliyuncs.com/labnow-oss/nvidia-cuda # Elasticserach @@ -12,8 +12,8 @@ docker.io/nvidia/cuda:12.6.3-cudnn-devel-ubuntu24.04,12.4.1-cudnn-devel-ubuntu22 # - ref2: https://www.elastic.co/docs/deploy-manage/deploy/self-managed/install-elasticsearch-with-docker docker.elastic.co/elasticsearch/elasticsearch:7.17.28,8.11.3,8.17.5,8.18.0,9.0.0: - quay.io/labnow/elasticsearch - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/elasticsearch - - registry.cn-beijing.aliyuncs.com/labnow-ai/elasticsearch + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/elasticsearch + - registry.cn-beijing.aliyuncs.com/labnow-oss/elasticsearch # Minio @@ -21,8 +21,8 @@ docker.elastic.co/elasticsearch/elasticsearch:7.17.28,8.11.3,8.17.5,8.18.0,9.0.0 # - ref2: https://min.io/docs/minio/container/index.html docker.io/minio/minio:latest,RELEASE.2023-12-20T01-00-02Z,RELEASE.2025-04-08T15-41-24Z: - quay.io/labnow/minio - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/minio - - registry.cn-beijing.aliyuncs.com/labnow-ai/minio + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/minio + - registry.cn-beijing.aliyuncs.com/labnow-oss/minio # valkey @@ -30,8 +30,8 @@ docker.io/minio/minio:latest,RELEASE.2023-12-20T01-00-02Z,RELEASE.2025-04-08T15- # - ref2: https://hub.docker.com/r/valkey/valkey docker.io/valkey/valkey:latest,8,8.1,8.1.0: - quay.io/labnow/valkey - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/valkey - - registry.cn-beijing.aliyuncs.com/labnow-ai/valkey + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/valkey + - registry.cn-beijing.aliyuncs.com/labnow-oss/valkey # k3s @@ -39,32 +39,32 @@ docker.io/valkey/valkey:latest,8,8.1,8.1.0: # - ref2: https://docs.k3s.io/installation/airgap rancher/k3s:latest,v1.32.3-k3s1: - quay.io/labnow/k3s - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/k3s - - registry.cn-beijing.aliyuncs.com/labnow-ai/k3s + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/k3s + - registry.cn-beijing.aliyuncs.com/labnow-oss/k3s # k3d: https://github.com/k3d-io/k3d/pkgs/container/k3d ghcr.io/k3d-io/k3d:latest,5-dind,5: - quay.io/labnow/k3s - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/k3d - - registry.cn-beijing.aliyuncs.com/labnow-ai/k3d + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/k3d + - registry.cn-beijing.aliyuncs.com/labnow-oss/k3d # k3d-proxy:https://github.com/k3d-io/k3d/pkgs/container/k3d-proxy ghcr.io/k3d-io/k3d-proxy:latest,5: - quay.io/labnow/k3s - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/k3d-proxy - - registry.cn-beijing.aliyuncs.com/labnow-ai/k3d-proxy + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/k3d-proxy + - registry.cn-beijing.aliyuncs.com/labnow-oss/k3d-proxy # k3d-tools: https://github.com/k3d-io/k3d/pkgs/container/k3d-tools ghcr.io/k3d-io/k3d-tools:latest,5: - quay.io/labnow/k3s - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/k3d-tools - - registry.cn-beijing.aliyuncs.com/labnow-ai/k3d-tools + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/k3d-tools + - registry.cn-beijing.aliyuncs.com/labnow-oss/k3d-tools # kube-scheduler registry.k8s.io/kube-scheduler:/v\d+\.\d+\.\d+/: - quay.io/labnow/kube-scheduler - - registry.cn-hangzhou.aliyuncs.com/labnow-ai/kube-scheduler - - registry.cn-beijing.aliyuncs.com/labnow-ai/kube-scheduler + - registry.cn-hangzhou.aliyuncs.com/labnow-oss/kube-scheduler + - registry.cn-beijing.aliyuncs.com/labnow-oss/kube-scheduler From 0996c079a904735472545453cef0f5951fc7914a Mon Sep 17 00:00:00 2001 From: haobibo Date: Fri, 13 Mar 2026 16:08:17 +0800 Subject: [PATCH 2/2] refine docs --- .github/workflows/task-sync.yml | 1 + README-zh_CN.md | 4 ++-- README.md | 4 ++-- task-sync-docker-images/README.md | 18 +++++++++--------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/task-sync.yml b/.github/workflows/task-sync.yml index 1ff0a00..a65efb7 100644 --- a/.github/workflows/task-sync.yml +++ b/.github/workflows/task-sync.yml @@ -21,6 +21,7 @@ jobs: steps: - uses: actions/checkout@v5 - env: + # required to set AUTH_FILE_CONTENT secret in GitHub secrets for Actions AUTH_FILE_CONTENT: ${{ secrets.AUTH_FILE_CONTENT }} run: | printf '%s' "$AUTH_FILE_CONTENT" > .github/workflows/auth.json && ls -alh ./.github/workflows diff --git a/README-zh_CN.md b/README-zh_CN.md index d7bfc47..32e3e2a 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -4,8 +4,8 @@ ## 项目用途 -- 使用 `task-sync-docker-images/images.yaml` 定义需要同步的镜像及目标仓库。 -- 通过 GitHub Actions 工作流,使用 `labnow/docker-kit` 容器中的 `image-syncer` 执行同步。 +- 使用 [`task-sync-docker-images/images.yaml`](task-sync-docker-images/images.yaml) 定义需要同步的镜像及目标仓库。 +- 通过 GitHub Actions 工作流,使用 [labnow/docker-kit](https://github.com/LabNow-ai/lab-foundation/tree/main/docker_docker_kit) 容器中的 [image-syncer](https://github.com/AliyunContainerService/image-syncer/blob/master/README-zh_CN.md) 执行同步。 - 按配置将镜像推送到目标仓库。 ## 使用方式(Fork + 自定义) diff --git a/README.md b/README.md index 9b068fe..7b0b0e2 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ This repository provides an automated GitHub Actions workflow to sync container ## What This Project Does -- Defines image mappings in `task-sync-docker-images/images.yaml`. -- Runs a GitHub Actions workflow that uses `image-syncer` inside `labnow/docker-kit`. +- Defines image mappings in [`task-sync-docker-images/images.yaml`](task-sync-docker-images/images.yaml). +- Runs a GitHub Actions workflow that uses [image-syncer](https://github.com/AliyunContainerService/image-syncer/blob/master/README.md) inside [labnow/docker-kit](https://github.com/LabNow-ai/lab-foundation/tree/main/docker_docker_kit) to sync images. - Pushes images to target registries based on the mappings. ## How to Use (Fork + Customize) diff --git a/task-sync-docker-images/README.md b/task-sync-docker-images/README.md index 9644d85..0c63d72 100644 --- a/task-sync-docker-images/README.md +++ b/task-sync-docker-images/README.md @@ -55,27 +55,27 @@ registry.cn-hangzhou.aliyuncs.com: ### auth.json Example -Notice: the `AUTH_FILE_CONTENT` use this format by compact the JSON string into a single line. +Notice: the `AUTH_FILE_CONTENT` environment variable use this format by compact the JSON string into a single line. ```json { "docker.io": { - "username": "", - "password": "", + "username": "your-docker-io-username", + "password": "your-docker-io-password", "insecure": true }, "quay.io": { - "username": "", - "password": "", + "username": "your-quay-io-username", + "password": "your-quay-io-password", "insecure": true }, "registry.cn-beijing.aliyuncs.com": { - "username": "", - "password": "" + "username": "your-aliyun-acr-username", + "password": "your-aliyun-acr-password" }, "registry.cn-hangzhou.aliyuncs.com": { - "username": "", - "password": "" + "username": "your-aliyun-acr-username", + "password": "your-aliyun-acr-password" } } ```