From 4326e0e4704cce4cffd54dca9c99d02722c6dc06 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Sat, 30 Mar 2019 00:04:02 +0100 Subject: [PATCH] add RSYNC_USER to env --- 1-DOCS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1-DOCS.md b/1-DOCS.md index d0891ce..e0530c8 100644 --- a/1-DOCS.md +++ b/1-DOCS.md @@ -60,6 +60,8 @@ steps: environment: RSYNC_KEY: from_secret: rsync_key + RSYNC_USER: + from_secret: rsync_user settings: hosts: - remote1 @@ -75,7 +77,6 @@ steps: - cd ~/packages - md5sum -c app.tar.gz.md5 - tar -xf app.tar.gz -C ~/app - secrets: [ rsync_user, rsync_key ] ``` The example above illustrates a situation where an app package (`app.tar.gz`) will be deployed to 2 remote hosts (`remote1` and `remote2`). An md5 checksum will be deployed as well. After deploying, the md5 checksum is used to check the deployed package. If successful the package is extracted.