Skip to content

Commit

Permalink
Merge pull request #1093 from bershanskiy/circle-ci-fork
Browse files Browse the repository at this point in the history
Circle CI: skip uploading build artifacts on forks
  • Loading branch information
DL6ER authored Mar 29, 2021
2 parents cf2e3e5 + 260e1ea commit 20fdf02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ version: 2
name: "Upload binary to binary bucket"
command: |
[ -z "${CIRCLE_PR_USERNAME}" ] || exit 0
[ "${CIRCLE_PROJECT_USERNAME}" == "pi-hole" ] || exit 0
DIR="${CIRCLE_TAG:-${CIRCLE_BRANCH}}"
mkdir -p ~/.ssh/
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
Expand All @@ -30,6 +31,7 @@ version: 2
name: "Verify uploaded binary"
command: |
[ -z "${CIRCLE_PR_USERNAME}" ] || exit 0
[ "${CIRCLE_PROJECT_USERNAME}" == "pi-hole" ] || exit 0
DIR="${CIRCLE_TAG:-${CIRCLE_BRANCH}}"
mkdir download
cd download
Expand Down

0 comments on commit 20fdf02

Please sign in to comment.