This commit is contained in:
xiongxiao
2026-01-12 12:17:07 +08:00
parent 65056192ec
commit b239a42f39
3 changed files with 39 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ $:
script: git pull gitea main
- name: '提交到原本的origin'
script: git push origin main
main:
web_trigger_sync_to_gitea:
- <<: *common_sync_to_gitea
@@ -59,4 +60,15 @@ main:
api_trigger_sync_to_gitea:
- <<: *common_sync_to_gitea
api_trigger_sync_from_gitea:
- <<: *common_sync_from_gitea
- <<: *common_sync_from_gitea
push:
- services:
- docker
stages:
- name: 打包应用
script: npm run build
# 同名镜像构建&推送
- name: Docker build
script: docker build -t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:latest .
- name: Docker push
script: docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:latest