承接 kanopi/composer-assets-drupal-pantheon 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kanopi/composer-assets-drupal-pantheon

Composer 安装命令:

composer require kanopi/composer-assets-drupal-pantheon

包简介

Kanopi deployment configuration for Drupal on Pantheon (CircleCI, Kanopi orbs).

README 文档

README

Important

Read-only mirror. This repository is a subtree split of kanopi/kanopi-assets and is updated automatically. Issues are disabled and pull requests are closed automatically — report issues and open pull requests on the main kanopi-assets repository.

CircleCI deployment configuration for Drupal on Pantheon, built on the Kanopi orbs (kanopi/ci-tools, kanopi/cms-updates). Pantheon uses Multidev for preview/QA, so there is no Tugboat config here.

Scaffolds

Destination Update policy Purpose
.circleci/config.yml replaced on update Full workflow: phpcs/phpstan/rector/twig, deploy→cypress/lighthouse/pa11y/sdtt/backstop, automated-updates, cron
.circleci/env.sh seed once (overwrite:false) The per-project fill-in file
.circleci/scripts/compile-theme.sh replaced on update Theme build (npm/yarn $THEME_BUILD_COMMAND), in place — runs in the deploy job before the Pantheon artifact is built
.circleci/scripts/pantheon/dev-multidev replaced on update Pantheon dev/multidev deploy
.circleci/scripts/pantheon/pre-deploy.sh seed once (overwrite:false) Optional CI hook, runs before the artifact push (ships empty)
.circleci/scripts/pantheon/post-deploy.sh seed once (overwrite:false) Optional CI hook, runs after the release tasks (ships empty)
.circleci/scripts/pantheon/install-quicksilver.sh replaced on update Stages the Quicksilver scripts into web/private/private (per pantheon.yml) during deploy
.circleci/scripts/pantheon/quicksilver/drush-deploy.php replaced on update Quicksilver hook: drush deploy after a platform deploy
.circleci/scripts/pantheon/quicksilver/new_relic_deploy.php replaced on update Quicksilver hook: record the deploy in New Relic
pantheon.yml seed once (overwrite:false) Platform config + Quicksilver deploy hooks (skipped if you already have one)

The logic lives in the orbs and the shipped files; per-project values live only in env.sh. Bump the orb version or update this package to roll a fix to every site. To diverge, a site sets ".circleci/config.yml": false (or the script path) in its own composer.json and commits its own copy.

Fill in .circleci/env.sh

TERMINUS_SITE, PANTHEON_UUID, DEFAULT_BRANCH, DOCROOT, THEME_NAME, THEME_PATH, NODE_VERSION, NODE_PACKAGE_MANAGER (npm/yarn). The PHP version is a pipeline parameter at the top of config.yml (the docker image resolves before env.sh can be sourced); Node is installed at runtime via nvm, so NODE_VERSION lives in env.sh.

Deploy hooks

pre-deploy.sh and post-deploy.sh (seeded once, committed, yours to edit) let you customize the deploy without forking dev-multidev. They ship empty and run only if present — pre-deploy.sh before the artifact is pushed, post-deploy.sh after the release tasks (drush deploy + cache clear), with $TERMINUS_SITE.$TERMINUS_ENV in scope and terminus authenticated.

These are CI-side hooks (CircleCI deploys to dev/multidev). For platform deploys (dev→test→live promotions), see Quicksilver below.

Quicksilver hooks

pantheon.yml registers workflows.deploy.after hooks that run on Pantheon after every code deploy — including dashboard promotions that never touch CI:

  • drush-deploy.php — runs drush deploy (db updates, cache rebuild, config import, deploy hooks) on the deployed environment.
  • new_relic_deploy.php — records a deploy marker in New Relic. Requires the site secret: terminus secret:site:set <site> new_relic_api_key <key>.

install-quicksilver.sh stages these into web/private/scripts/quicksilver/ (or private/… when web_docroot is false) during the deploy, reading web_docroot from pantheon.yml. If your project already has a pantheon.yml, the seeded one is skipped — copy its workflows block in by hand, and keep the script paths aligned with your web_docroot.

Toggling stages

  • Theme build — set BUILD_THEME="false" in env.sh for a theme-less / no-build site (compile-theme.sh then skips the build; it also auto-skips when the theme has no package.json).
  • Post-deploy jobsconfig.yml exposes boolean pipeline parameters (run_cypress, run_lighthouse, run_pa11y, run_sdtt, run_backstop), all default true. Flip a default to false to skip that job. These are jobs, not steps, so they live in config.yml, not env.sh — CircleCI resolves the workflow before env.sh is sourced.

Secrets (CircleCI kanopi-code context — never in the repo)

TERMINUS_TOKEN, GITHUB_TOKEN, DOCKERHUB_USER, DOCKERHUB_PASS, SLACK_WEBHOOK. Add the deploy SSH key under Project Settings → SSH Keys.

Scheduled pipelines

  • automatic updates — name a CircleCI scheduled trigger automatic updates.
  • cron job … — name a trigger starting with cron job; set the cron_env pipeline parameter to the target Pantheon env.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固