This page looks best with JavaScript enabled

Circle CI で Hello World するまで

 ·   ·  ☕ 1 min read  ·  🐶 odanny · 👀... views
    🏷️

始まり

CI/CDってやつ触ってみたいなーってなってた.下の記事をみつけたので真似してhello worldした.

GitHub+CircleCI入門

.circleci/config.yml をコミットした後エラーが出た

error.png

エラーを見てみると,

Configuration errors: 2 errors occurred:

* Configuration version 2.1 requires the "Enable Pipelines" project setting. Enable pipelines under Project Settings -> Advanced Settings. In order to retrigger pipelines, you must push a new commit.
* Cannot find a job named `build` to run in the `jobs:` section of your configuration file.
If you expected a workflow to run, check your config contains a top-level key called 'workflows:'

一つ目で言われてる設定を見ても,enable になってるし,二つ目のエラーも top-level に workflows を置かなくてもいいはず….

結論は,このエラーは別に問題ではないようだ.ここで CI の設定をしているので,次のコミットから反映される,つまり次に新しいコミットをするとHello worldできる.

commit.png

詳細を見てみると,

hello-circleci.png

できた!!

Markdwon を勝手にpdf に変換するようにしていきたい.

参考

GitHub+CircleCI入門
:参考にしたやつ

MarkdownをCircleCI上でPDFに変換してGoogleドライブにデプロイする
:これやりたい。2018/05 の記事

いまさらだけどCircleCIに入門したので分かりやすくまとめてみた
:網羅的。ちょっと事前知識がないと難しい…

Share on

odanny
WRITTEN BY
odanny
自作キーボードはまり中