LoginSignup
5
2

More than 5 years have passed since last update.

Circle CI のデプロイ反応を特定のブランチ等で制限したい場合

Posted at

Circle CI の設定で出来る。

特定のブランチを無視する記述

general:
  branches:
    ignore:
      - gh-pages # list of branches to ignore
      - /release\/.*/ # or ignore regexes

特定のブランチのみ反応させる記述

general:
  branches:
    only:
      - master # list of branches to build
      - /feature-.*/ # or regexes

ちなみにコミットレベルで Circle CIの反応を防ぎたいときは、コミットメッセージに [ci skip][skip ci] と入れるとよい。

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2