From 6b20ed05115e9251db9daa858f393308bc508659 Mon Sep 17 00:00:00 2001 From: xiongxiao Date: Mon, 19 Jan 2026 22:08:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E7=9A=84=E6=96=87=E6=A1=A3=E5=92=8C=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 1 + skill/deploy/SKILL.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 skill/deploy/SKILL.md diff --git a/deploy.sh b/deploy.sh index 52d99eb..3e4a9b9 100644 --- a/deploy.sh +++ b/deploy.sh @@ -6,4 +6,5 @@ echo "${KUBECONFIG_DATA}" | base64 -d > ~/.kube/config kubectl config use-context dev-context + kubectl rollout restart deployment/blog -n default \ No newline at end of file diff --git a/skill/deploy/SKILL.md b/skill/deploy/SKILL.md new file mode 100644 index 0000000..3ae9f7a --- /dev/null +++ b/skill/deploy/SKILL.md @@ -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 +``` \ No newline at end of file