diff --git a/.github/ISSUE_TEMPLATE/sync-image.yml b/.github/ISSUE_TEMPLATE/sync-image.yml
index f9e184c..3fd84b5 100644
--- a/.github/ISSUE_TEMPLATE/sync-image.yml
+++ b/.github/ISSUE_TEMPLATE/sync-image.yml
@@ -3,16 +3,43 @@ description: 同步一个镜像
labels:
- sync image
body:
-- type: checkboxes
- id: checkboxes
+- type: markdown
attributes:
- label: 单次单镜像同步
- description: 请在标题上填入你要同步的 Image
+ value: |
+ # ↑↑↑↑↑↑↑↑↑↑↑ 填入你要同步的 Image
+ ## 请包含 域名/路径:标签
+
+- type: checkboxes
+ attributes:
+ label: domain
+ options:
+ - label: 确保包含域名(domain)
+- type: markdown
+ attributes:
+ value: |
+ - 如 docker.io/
+ - 如 registry.k8s.io/
+ - 如果不包含域名, 需要主动添加默认的 docker.io/
+
+- type: checkboxes
+ attributes:
+ label: tag
+ options:
+ - label: 确保包含镜像的标签(tag)
+- type: markdown
+ attributes:
+ value: |
+ - 如 :latest
+ - 如 :v1
+
+- type: checkboxes
+ attributes:
+ label: check
options:
- - label: 确保包含域名, 如 docker.io/, registry.k8s.io/, 如果不包含域名的请填入默认的 docker.io/
- - label: 确保包含镜像的 tag, 如 :latest
- label: 请确保这个镜像真实存在
- - label: 举个例子
- - label: 如 docker.io/library/busybox:latest
- - label: 如 docker.io/kindest/node:v1.30.0
- - label: 如 registry.k8s.io/kubectl:v1.30.0
+- type: markdown
+ attributes:
+ value: |
+ - 如 docker.io/library/busybox:latest
+ - 如 docker.io/kindest/node:v1.30.0
+ - 如 registry.k8s.io/kubectl:v1.30.0
diff --git a/.github/workflows/target-sync-image.yml b/.github/workflows/target-sync-image.yml
index a5e26b3..7274fa0 100644
--- a/.github/workflows/target-sync-image.yml
+++ b/.github/workflows/target-sync-image.yml
@@ -61,7 +61,7 @@ jobs:
ORIGIN_IMAGE=$(echo ${{ github.event.issue.title }} | awk '{print $1}')
./hack/diff-image.sh "${ORIGIN_IMAGE}" "m.daocloud.io/${ORIGIN_IMAGE}"
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步完成
请使用 m.daocloud.io/${ORIGIN_IMAGE} 替代源镜像"
- gh issue edit ${{ github.event.issue.number }} --add-label "sync image succeeded"
+ gh issue edit ${{ github.event.issue.number }} --add-label "sync image succeeded" -b "IMAGE SYNC"
gh issue close ${{ github.event.issue.number }} --reason "completed"
- name: Fail Sync
@@ -69,5 +69,5 @@ jobs:
run: |
ORIGIN_IMAGE=$(echo ${{ github.event.issue.title }} | awk '{print $1}')
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败[详情请查看](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
请检查 image 是否存在, [查看成功例子](https://github.com/DaoCloud/public-image-mirror/issues?q=is%3Aissue+is%3Aclosed+label%3A%22sync+image+succeeded%22)
如有疑问请回复 /auto-cc 召唤帮助"
- gh issue edit ${{ github.event.issue.number }} --add-label "sync image failure"
+ gh issue edit ${{ github.event.issue.number }} --add-label "sync image failure" -b "IMAGE SYNC"
gh issue close ${{ github.event.issue.number }} --reason "not planned"