feat: 添加部署博客的文档和脚本

This commit is contained in:
xiongxiao
2026-01-19 22:08:03 +08:00
parent 29a097d64f
commit 6b20ed0511
2 changed files with 16 additions and 0 deletions

View File

@@ -6,4 +6,5 @@ echo "${KUBECONFIG_DATA}" | base64 -d > ~/.kube/config
kubectl config use-context dev-context
kubectl rollout restart deployment/blog -n default

15
skill/deploy/SKILL.md Normal file
View File

@@ -0,0 +1,15 @@
---
name: deploy-blog
description: 部署博客步骤
---
# 部署博客步骤
```sh
docker build -t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:latest .
docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:latest
echo "${KUBECONFIG_DATA}" | base64 -d > ~/.kube/config
kubectl config use-context dev-context
kubectl rollout restart deployment/blog -n default
```