Update issue template (#3755)
This commit is contained in:
parent
6956015418
commit
9021d343b6
|
@ -3,16 +3,43 @@ description: 同步一个镜像
|
||||||
labels:
|
labels:
|
||||||
- sync image
|
- sync image
|
||||||
body:
|
body:
|
||||||
- type: checkboxes
|
- type: markdown
|
||||||
id: checkboxes
|
|
||||||
attributes:
|
attributes:
|
||||||
label: 单次单镜像同步
|
value: |
|
||||||
description: 请在标题上填入你要同步的 Image
|
# ↑↑↑↑↑↑↑↑↑↑↑ 填入你要同步的 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:
|
options:
|
||||||
- label: 确保包含域名, 如 docker.io/, registry.k8s.io/, 如果不包含域名的请填入默认的 docker.io/
|
|
||||||
- label: 确保包含镜像的 tag, 如 :latest
|
|
||||||
- label: 请确保这个镜像真实存在
|
- label: 请确保这个镜像真实存在
|
||||||
- label: 举个例子
|
- type: markdown
|
||||||
- label: 如 docker.io/library/busybox:latest
|
attributes:
|
||||||
- label: 如 docker.io/kindest/node:v1.30.0
|
value: |
|
||||||
- label: 如 registry.k8s.io/kubectl:v1.30.0
|
- 如 docker.io/library/busybox:latest
|
||||||
|
- 如 docker.io/kindest/node:v1.30.0
|
||||||
|
- 如 registry.k8s.io/kubectl:v1.30.0
|
||||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
ORIGIN_IMAGE=$(echo ${{ github.event.issue.title }} | awk '{print $1}')
|
ORIGIN_IMAGE=$(echo ${{ github.event.issue.title }} | awk '{print $1}')
|
||||||
./hack/diff-image.sh "${ORIGIN_IMAGE}" "m.daocloud.io/${ORIGIN_IMAGE}"
|
./hack/diff-image.sh "${ORIGIN_IMAGE}" "m.daocloud.io/${ORIGIN_IMAGE}"
|
||||||
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步完成<br>请使用 m.daocloud.io/${ORIGIN_IMAGE} 替代源镜像"
|
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步完成<br>请使用 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"
|
gh issue close ${{ github.event.issue.number }} --reason "completed"
|
||||||
|
|
||||||
- name: Fail Sync
|
- name: Fail Sync
|
||||||
|
@ -69,5 +69,5 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ORIGIN_IMAGE=$(echo ${{ github.event.issue.title }} | awk '{print $1}')
|
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 }})<br>请检查 image 是否存在, [查看成功例子](https://github.com/DaoCloud/public-image-mirror/issues?q=is%3Aissue+is%3Aclosed+label%3A%22sync+image+succeeded%22)<br>如有疑问请回复 /auto-cc 召唤帮助"
|
gh issue comment ${{ github.event.issue.number }} -b "镜像 ${ORIGIN_IMAGE} 同步失败[详情请查看](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})<br>请检查 image 是否存在, [查看成功例子](https://github.com/DaoCloud/public-image-mirror/issues?q=is%3Aissue+is%3Aclosed+label%3A%22sync+image+succeeded%22)<br>如有疑问请回复 /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"
|
gh issue close ${{ github.event.issue.number }} --reason "not planned"
|
||||||
|
|
Loading…
Reference in New Issue