diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 82c5554..1969cc1 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -12,9 +12,17 @@ steps: image: appleboy/drone-scp settings: command_timeout: 2m + host: + from_secret: ssh-host + key: + from_secret: ssh-key + port: + from_secret: ssh-port source: - . target: /stack/squid + username: + from_secret: ssh-user - name: wait image: alpine @@ -35,6 +43,12 @@ steps: - ssh_root_user - ssh_password - ssh_key + host: + from_secret: ssh-host + key: + from_secret: ssh-key + port: + from_secret: ssh-port script: - set -e - docker network prune -f @@ -55,6 +69,8 @@ steps: - echo "$${SSH_PASSWORD}" - export SSH_KEY="$${SSH_KEY}" - echo "$${SSH_KEY}" + username: + from_secret: ssh-user environment: SSH_HOST: from_secret: ssh-host diff --git a/.drone/lib/settings.libsonnet b/.drone/lib/settings.libsonnet index 4981fae..2bc4c99 100644 --- a/.drone/lib/settings.libsonnet +++ b/.drone/lib/settings.libsonnet @@ -1,9 +1,11 @@ local util = import 'util.libsonnet'; { ssh: { - host: util.fromSecret('ssh-host'), - port: util.fromSecret('ssh-port'), - username: util.fromSecret('ssh-user'), - key: util.fromSecret('ssh-key'), + settings +: { + host: util.fromSecret('ssh-host'), + port: util.fromSecret('ssh-port'), + username: util.fromSecret('ssh-user'), + key: util.fromSecret('ssh-key'), + }, }, } \ No newline at end of file