diff --git a/.drone.yml b/.drone.yml index 7bef68f..d7c52b7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ steps: command: ["build"] - name: deploy - image: ubuntu + image: alpine:latest environment: HOST: @@ -26,12 +26,9 @@ steps: - main commands: - - apt-get update -qq > /dev/null - - apt-get install ssh rsync -qq > /dev/null + - apt-get update + - apt-get add openssh rsync - eval $(ssh-agent -s) - mkdir -p ~/.ssh - echo "$RSYNC_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - - ssh-add - - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - - rsync -rP public/ "$${USER}@$${HOST}:$${PATH}"