build: ci: fix quickcheck-docs for external PRs (#763)

fixes https://github.com/zrepl/zrepl/issues/762
This commit is contained in:
Christian Schwarz 2023-11-01 00:12:23 +01:00 committed by GitHub
parent 21e0ae63a6
commit 30faaec26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,19 +58,26 @@ commands:
git config --global user.email "zreplbot@cschwarz.com" git config --global user.email "zreplbot@cschwarz.com"
git config --global user.name "zrepl-github-io-ci" git config --global user.name "zrepl-github-io-ci"
# https://circleci.com/docs/2.0/add-ssh-key/#adding-multiple-keys-with-blank-hostnames # if we're pushing, we need to add the deploy key
- run: ssh-add -D # which is stored as "Additional SSH Keys" in the CircleCI project settings.
# the default circleci ssh config only additional ssh keys for Host !github.com # We can't use the CircleCI-manage deploy key because we're pushing
- run: # to a different repo than the one we're building.
command: | - when:
cat > ~/.ssh/config \<<EOF condition: << parameters.push >>
Host * steps:
IdentityFile /home/circleci/.ssh/id_rsa_458e62c517f6c480e40452126ce47421 # https://circleci.com/docs/2.0/add-ssh-key/#adding-multiple-keys-with-blank-hostnames
EOF - run: ssh-add -D
- add_ssh_keys: # the default circleci ssh config only additional ssh keys for Host !github.com
fingerprints: - run:
# deploy key for zrepl.github.io command: |
- "45:8e:62:c5:17:f6:c4:80:e4:04:52:12:6c:e4:74:21" cat > ~/.ssh/config \<<EOF
Host *
IdentityFile /home/circleci/.ssh/id_rsa_458e62c517f6c480e40452126ce47421
EOF
- add_ssh_keys:
fingerprints:
# deploy key for zrepl.github.io
- "45:8e:62:c5:17:f6:c4:80:e4:04:52:12:6c:e4:74:21"
# caller must install-docdep # caller must install-docdep
- when: - when: