LoginSignup
0
0

More than 3 years have passed since last update.

CircleCiメモ

Posted at

localにCircleCi CLIをインストールする(mac)

クイックインストール

curl -fLSs https://circle.ci/cli | bash

configをバリデート

# circlciの設定が置いてあるdirに移動して
cd myDir/.circleci
# validate
circleci config validate

workflowの設定

developブランチ/featureブランチへ変更が入った際にbuildジョブを実行

workflows:
  version: 2
  deploy-build:
    jobs:
      - build:
          filters:
            branches:
              only:
                - develop
                - /^feature\/.*/

PRが作られた際にprジョブを実行

workflows:
  version: 2
  deploy-build:
    jobs:
      - pr:
          filters:
            branches:
              only: /pull\/[0-9]+/

tagを切った際にreleaseジョブを実行

workflows:
  version: 2
  deploy-build:
    jobs:
      - release:
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^[0-9]+\.[0-9]+\.[0-9]+$/
0
0
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
0
0