Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
Hexo博客基于CNB平台自动化部署指南在当今的开发环境中,自动化部署已成为提升开发效率的重要手段。本文将详细介绍如何使用CNB平台实现Hexo博客的自动化部署,让您的博客发布流程更加高效和便捷。
什么是CNB?CNB(Cloud Native Build)是一个云原生构建平台,提供了强大的CI/CD能力,支持多种编程语言和框架的自动化构建与部署。
部署配置解析基础配置我们的部署配置文件 .cnb.yml 采用了多阶段流水线设计:
123456main: push: - docker: image: node:22 volumes: - /root/.npm:cow
这里我们使用 Node.js 22 作为基础镜像,并通过 volumes 配置实现 npm 缓存,加速依赖安装过程。
密钥管理CNB支持通过 imports 引用外部密钥配置:
12imports: - https://cnb.cool/oviovi/key/-/blob/main/tencent.yml
这种方式避免了敏感信息直接暴露在配置文件中,提升 ...
