Skip to content

northseadl/norix-skills / cnb-cool-integration

cnb-cool-integration

Verified

针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。

FileKindSize
SKILL.mdskill md3.7 KB
agents/openai.yamlconfig350 B
references/cache.mdmarkdown1.4 KB
references/cnb-yml.mdmarkdown1.3 KB
references/debug.mdmarkdown555 B
references/docker-and-runner.mdmarkdown2.2 KB
references/env.mdmarkdown876 B
references/file-reference.mdmarkdown1.4 KB
references/intro.mdmarkdown1.5 KB
references/recipes.mdmarkdown1.5 KB
references/trigger-rule.mdmarkdown1.1 KB
references/web-trigger.mdmarkdown1.6 KB

references/recipes.md

View on GitHub
# 常用配方(按需拷贝并改名)

## 1) 跳过构建(commit message)

提交信息包含以下标记会跳过构建:

- `skip-cnb`:跳过整个构建
- `skip-cnb: <stageName>`:跳过指定 stage
- `skip-cnb: <jobName>`:跳过指定 job

## 2) Docker build & push

```yaml
main:
  push:
    - docker:
        image: cnbcool/default:docker
        volumes:
          docker: /var/run/docker.sock
      stages:
        - name: build-and-push
          jobs:
            - name: build-and-push
              env:
                IMAGE: registry.example.com/demo/demo:{{ .CNB_BUILD_NUMBER }}
              script:
                - docker build -t $IMAGE .
                - docker push $IMAGE
```

## 3) Monorepo 按需构建(ifModify)

用 `ifModify` 做变更路径过滤,只在相关目录变更时执行:

```yaml
main:
  push:
    - name: build-foo
      ifModify:
        - pkg/foo/**
      stages:
        - jobs:
            - script:
                - make -C pkg/foo build
```

## 4) 超时策略(概念)

超时一般分为两层:

- pipeline:整条流水线允许的最大执行时间
- job:单个任务允许的最大执行时间

当用户反馈“构建经常跑满超时”时,先确认是 pipeline 级还是 job 级超时,再做资源(runner)与拆分(stage/job)优化。

## 5) 权限说明(快速判断)

- 触发构建:通常要求仓库达到一定权限(如开发者及以上)
- 查看日志:公开仓库一般任何人可看;私有仓库通常需要协作者权限

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall