新增:《Docker安装Consul》

This commit is contained in:
2022-10-25 23:01:45 +08:00
parent 30736ef9ab
commit 4005a1f3b1
3 changed files with 68 additions and 8 deletions

View File

@@ -9,23 +9,19 @@ on:
branches: [main, master]
# 定时执行,字段含义:分钟 小时 日 月 星期
# 注意:
# 1.如果没有在下方配置时区,那默认采用的是 UTC 时间
# 1.采用的是 UTC 时间
# 即,你配置的 0 0 * * *UTC00:00 实际上是GMT+080008:00
# 只有你配置为 00 16 * * *UTC16:00 实际上才是 GMT+080000:00
# 2.官方声明schedule 事件在 GitHub Actions 工作流运行期间负载过高时可能会延迟。 高负载时间包括每小时的开始时间。 为了降低延迟的可能性,建议将您的工作流程安排在不同时间运行。
# 例如:笔者之前没设置时区前设定的定时规则为 0 0 * * *实际GMT+0800执行时间通常在 9:10 ~ 10:00甚至会出现在 10:00 之后执行的情况
# 例如:笔者之前设定的定时规则为 0 0 * * *UTC实际GMT+0800执行时间通常在 9:10 ~ 10:00甚至会出现在 10:00 之后执行的情况
# 3.建议不只是定时执行的时候注意时间,自己 push 时也注意时间,早点休息
# 例如:笔者多次亲身经历,凌晨时间 pages build and deployment 任务大概能持续 8 分钟的 Current status: deployment_queued 状态,
# 即使能进入 Current status: deployment_in_progress 和 Current status: syncing_files 状态,如果文件多点,没一会儿就 Error: Timeout reached, aborting! 超时失败了
schedule:
- cron: 30 1 * * *
- cron: 30 17 * * *
# 可手动执行
workflow_dispatch:
# 设置时区(默认是 UTC 时间)
env:
TZ: Asia/Shanghai
jobs:
# 任务1: 部署 GitHub Pages
deploy-github-pages: