Sure thing. Here you go. I guess it’s worth noting I have 100+ repos that all worked until today so it’s not a one-off or anything.
version: 2
jobs:
build:
parallelism: 2
working_directory: ~/src
docker:
- image: docker:18.06.0-ce
steps:
- setup_remote_docker:
reusable: true
exclusive: true
- run:
name: Dependencies
command: apk add --no-cache curl git jq make openssh
- checkout
- run:
name: Build and Test
command: |
case $CIRCLE_NODE_INDEX in
0) make image runtests
;;
1) make snyk
;;
esac
- deploy:
command: |
if [ -z "${CIRCLE_NO_DEPLOY}" ]; then
if [[ `echo $CIRCLE_BRANCH | grep -E "^(master|.*hotfix.*)$"` ]]; then
make push
fi
if [[ `echo $CIRCLE_BRANCH | grep -E "^(master)$"` ]]; then
make deploy
fi
fi
workflows:
version: 2
commit-workflow:
jobs:
- build
scheduled-workflow:
triggers:
- schedule:
cron: "0 1 * * 1"
filters:
branches:
only: master
jobs:
- build
Here’s the checkout
text from Circle when using this config (after today):
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.
Enumerating objects: 286, done.
Counting objects: 100% (286/286), done.
Compressing objects: 100% (38/38), done.
Total 1507 (delta 269), reused 253 (delta 248), pack-reused 1221
If I ssh into the instance, the code is checked out, but the extra known_hosts
data and everything else Circle usually does during checkout
isn’t there.