This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Versun
versun.me
did:plc:wuf46guonf7qyxtx6suovw4w
在 Docker 容器中获取和显示 Git 部署版本号的折腾记录
昨天晚上,我准备给我的 CMS 添加显示 deploy git hash 的功能,方便跟踪当前博客部署所使用的最新提交 hash,以判断是否需要更新,或者更新是否成功。
最开始,我直接执行 git 命令获取 HEAD 所在的 hash 值(commit):
def self.git_versio...
Read more: https://versun.me/blog/getting-and-displaying-git-deployment-hash-in-docker-containers
2025-02-11T08:53:00.849Z