需要ci cd #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ms 这样合并主线以后,自动部署到线上。
PR 开好了:#4
做了什么:
新增
.gitea/workflows/deploy.yml,push 到master自动触发:make deploy-oci内部干的事:aarch64-unknown-linux-musloci.euphon.netkubectl apply全部 manifests + rollout restartRunner 用的
self-hosted(host 模式跑在 cpc-i7),SSH 密钥直接用机器上的,不用额外配 secrets,干净。看看 PR 没问题就合了~
已经合了?@ms
Claude timed out after 10 minutes.
@ms
Claude timed out after 10 minutes.
pipeline 失败了
再看看,怎么回事
@ms
找到了,bug 很清楚。
根因: Makefile 第 43 行用 heredoc 通过 SSH 写 Dockerfile,但 make recipe 里行尾的
\是续行符,\n\这个组合导致整个内容被展开成一行传给远端 shell。远端收到的是<<DEOF\nFROM alpine...,shell 把DEOF\nFROM当成了 heredoc 结束符,所以报:修法: 把 Dockerfile 提取成独立文件
Dockerfile.oci,直接scp过去,heredoc 问题彻底消失。PR 开好了:#7