Skip to content

Commit c14bcec

Browse files
committed
fix: 恢复 .cnb.yml 中同步代码到 GitHub 的步骤,移除 docker 相关步骤的注释
1 parent 2c6d7fe commit c14bcec

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.cnb.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ dev:
77
- docker
88
stages:
99
# 同步代码到 github 仓库
10-
# - name: sync to github
11-
# image: tencentcom/git-sync
12-
# settings:
13-
# target_url: https://github.com/RSS1102/blog.git
14-
# auth_type: https
15-
# username: RSS1102
16-
# password: ${GITHUB_BLOG_TOKEN}
17-
# branch: dev
10+
- name: sync to github
11+
image: tencentcom/git-sync
12+
settings:
13+
target_url: https://github.com/RSS1102/blog.git
14+
auth_type: https
15+
username: RSS1102
16+
password: ${GITHUB_BLOG_TOKEN}
17+
branch: dev
1818

1919
# 同名镜像构建&推送 https://docs.cnb.cool/zh/artifact/docker.html#deng-lu-cnb-docker-zhi-pin-ku
20-
- name: docker login
21-
script: docker login docker.cnb.cool -u cnb -p ${CNB_TOKEN}
22-
- name: docker build
23-
script: docker build -t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:dev .
24-
- name: docker push
25-
script: docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:dev
20+
# - name: docker login
21+
# script: docker login docker.cnb.cool -u cnb -p ${CNB_TOKEN}
22+
# - name: docker build
23+
# script: docker build -t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:dev .
24+
# - name: docker push
25+
# script: docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:dev

0 commit comments

Comments
 (0)