终于吧 blog 的自动构建 pipeline 配置好了 - Est's Blog
source link: https://blog.est.im/2022/stdout-07
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
终于吧 blog 的自动构建 pipeline 配置好了
Posted 2022-07-19 | stdout
目前博客是基于 pelican 的 static-site generator,一个 python 模块本地渲染成静态文件然后通过 github pages 发布。
源码放在 bitbucket,之前比较懒都是本地跑,一直想改成 CI/CD pipeline,今天终于配置好了。记录一些坑吧
- bitbucket pipeline 不通 step 之间数据是不共享的。本来想用 parallel 功能在下载 pip 模块和 git clone 皮肤做个并行,后来发现 artifact 拷贝速度还不如串行去跑。就所有步奏一个 step 坐完罢了
- 博客源码和生成结果可以直接同步提交信息:
msg=$(git log -1 --pretty=%B)
cd output
git config user.name est
git config user.email 邮箱
git add .
git commit -m "$msg"
git push - 由于 pip 模块装了不知道在哪里,所以调试 pip 安装路径方法:
python -c 'import site; print(*site.getsitepackages(), sep="\n")' - pelican 默认居然没支持 Markdown 也是醉了
python -m pip install pelican==4.8.0 Markdown - 自定义皮肤依赖,由于 submodule 我没玩转,所以这样安装:
git clone --depth=1 [email protected]:est/aether-pelican.git || (cd aether-pelican; git pull --rebase)
Recommend
-
124
IPv6终于要取代IPv4了!!!你准备好了么? Original...
-
34
-
67
面向用户:对NLP感兴趣,想学习处理问题思路并通过实例代码练手 阅读时长:全文大约 2000 字,读完可能需要下面这首歌的时间 授人以鱼不如授人以渔,今天的文章由作者 Adam Geitgey授权在人工智能头条...
-
47
Apple - @NG6 - 庆祝一下自己折腾了两天,终于搞好了,之前一直用别人的 EFI 小修小改在使用,随着新款 Mac mini 的发布,终于着手开始制作一份属于自己的 Hackintosh EFI具体的描述内容都放到我
-
59
分享嘉宾:曾纪策 微众银行 架构师 编辑整理:Hoh Xil 内容来源:微众银行 & DataFun AI Talk
-
14
本文预计阅读时间 6 分钟 系列汇总 这是一个系列文章,大大小小到今天惊然发现竟然已经累计二十篇了,也就不得不做一个小汇总。回想当初写第一篇文章的时候,就已经决心事无巨细,一应认真的走下来,回头遮望,看着皇皇这么多文...
-
4
本文预计阅读时间 6 分钟 系列汇总 这是一个系列文章,大大小小到今天惊然发现竟然已经累计二十篇了,也就不得不做一个小汇总。回想当初写第一篇文章的时候,就已经决心事无巨细,一应认真的走下来,回头遮望,看着皇皇这么多文...
-
5
太好了!终于梳理清楚Python多线程与多进程!对于刚入门的Pythoner在学习过程中运行代码是或多或少会遇到一些错误,刚开始可能看起来比较费劲。随着代码量的积累,熟能生巧当遇到一些运行...
-
3
UWA Pipeline 功能详解|可视化配置自动测试 作者:admin 时间:昨天 11:18 浏览:16 次 分类:
-
5
V2EX › 旅行 3700 字, 80 张图,西藏游记终于写好了!
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK