以下yamlで実現したいことは。
masterにマージされた時、build-job及び、deploy-stageを実行します。
tagをきった場合には、circleCI上での承認を求め、承認されたら、deploy-productを実行させたいです。
version: 2 jobs: build-job: docker: - image: centos:7 working_directory: ~/repo steps: - checkout deploy-stage: docker: - image: centos:7 steps: - checkout deploy-product: docker: - image: centos:7 steps: - checkout workflows: version: 2 build-deploy: jobs: - build-job - deploy-stage: requires: - build-job filters: branches: only: master - approve_deploy: type: approval filters: branches: ignore: /.*/ tags: only: /^v.*/ - deploy-product: requires: - approve_deploy filters: branches: ignore: /.*/ tags: only: /^v.*/
しかし、deploy-productのみジョブが失敗してしまいます。
以下エラーです。
Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed. Counting objects: 8227, done. Compressing objects: 100% (5060/5060), done. Total 8227 (delta 3409), reused 7119 (delta 2769) object not found
条件としては正しいと思うのですが、何が原因なのでしょうか?
ご教授お願いします。
追記
どうやら、タグをトリガーとしたビルドやデプロイの際こけるようです。
この時、dockerで使用するimageをcircleci/php:7.1-browsersにすれば実行されることを確認しました。
しかし、centos7で実行したいコマンドがあるので、circleci/php:7.1-browsersを使用することはできません。
これは一体何が原因なのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。