Skip to content

Commit

Permalink
Set directory name and put to that directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dschaper authored and AzureMarker committed Jun 15, 2019
1 parent 0d522ae commit 3e307b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ version: 2
name: "Upload"
command: |
[ -z "$FTL_SECRET" ] && exit 0
DIR="${CIRCLE_TAG:-${CIRCLE_BRANCH}}"
mv pihole-FTL "${BIN_NAME}"
sha1sum pihole-FTL-* > ${BIN_NAME}.sha1
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
[[ "$CIRCLE_PR_NUMBER" == "" ]] && sftp $SSH_USER@$SSH_HOST <<<$"mkdir ${CIRCLE_TAG:-CIRCLE_BRANCH}"
[[ "$CIRCLE_PR_NUMBER" == "" ]] && sftp $SSH_USER@$SSH_HOST <<<$"put ${BIN_NAME}*"
[[ "$CIRCLE_PR_NUMBER" == "" ]] && sftp $SSH_USER@$SSH_HOST <<<$"mkdir ${DIR}"
[[ "$CIRCLE_PR_NUMBER" == "" ]] && sftp $SSH_USER@$SSH_HOST <<<$"put ${BIN_NAME}* ${DIR}"
mv "${BIN_NAME}" pihole-FTL
- run:
name: "Test"
Expand Down

0 comments on commit 3e307b1

Please sign in to comment.