/bin/sh: git: not found


#1

Many Docker images are missing dependencies you need. You need git and openssh-client at the very least to checkout your repository. This is the simple solution to solving missing dependencies, without building and pushing your own Docker image.

version: 2
executorType: docker
containerInfo:
  - image: node:alpine
stages:
  build:
    workDir: /home/circleci/project
    steps:
      - type: shell
        shell: /bin/sh
        pwd: /
        command: apk -U add git openssh
      - type: checkout
      - type: shell
        shell: /bin/sh
        command: return 0

#2