Circleci update (#37)

* circleci: refine config
This commit is contained in:
dman776 2018-07-09 10:18:34 -05:00 committed by GitHub
parent 9f2c34eec2
commit b68b3da5c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
version: 2
jobs:
build:
working_directory: /opt/aredn/aredn_ar71xx
branches:
only:
- develop
@ -25,7 +26,7 @@ jobs:
command: echo "delete old files on ${SSH_HOST}:${NIGHTLY_DIR} (rm -rf ${NIGHTLY_DIR}"
- run:
name: Deploy Files
command: scp -o StrictHostKeyChecking=no ${ARTIFACTS_ARCHIVE}/${ARTIFACTS_FILE} ${SSH_USER}@${SSH_HOST}:~/
command: scp -o StrictHostKeyChecking=no ${HOME}/${ARTIFACTS_FILE} ${SSH_USER}@${SSH_HOST}:~/
- run:
name: Process Files
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'tar -xjf ~/${ARTIFACTS_FILE} -C ~/'"