more fixes.
This commit is contained in:
11
.drone.yml
11
.drone.yml
@ -13,7 +13,7 @@ steps:
|
||||
image: "rust:1.49"
|
||||
volumes:
|
||||
- name: "cache"
|
||||
path: "/.target"
|
||||
path: "./target"
|
||||
commands:
|
||||
- "apt-get update && apt-get install -yqq musl-tools"
|
||||
- "rustup target add armv7-unknown-linux-musleabihf"
|
||||
@ -26,16 +26,15 @@ steps:
|
||||
depends_on:
|
||||
- "validate"
|
||||
environment:
|
||||
SSH_PK:
|
||||
SSH_PRIVATE_KEY:
|
||||
from_secret: SSH_PRIVATE_KEY
|
||||
SSH_PARAMS: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known_hosts'
|
||||
TARGET_DIR: "./.target/armv7-unknown-linux-musleabihf/release"
|
||||
commands:
|
||||
- "mkdir /tmp/ssh 2>&1"
|
||||
- "echo -n ${SSH_PK} | base64 -d > /tmp/ssh/deploy_key "
|
||||
# Start the SSH Agent and insert ssh private key.
|
||||
- "eval $(ssh-agent -s)"
|
||||
- "chmod 600 /tmp/ssh/deploy_key"
|
||||
- "ssh-add /tmp/ssh/deploy_key"
|
||||
- "echo '${SSH_PRIVATE_KEY}' | tr -d '\r' | ssh-add -"
|
||||
# Copy the binary file to it.
|
||||
- "scp ${SSH_PARAMS} ${TARGET_DIR}/alterego ${SSH_USER}@${SSH_HOST}:/home/pi/alterego"
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user