Remove print of priv key in ci
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
writeShellScriptBin "deploy-docs" ''
|
writeShellScriptBin "deploy-docs" ''
|
||||||
set -eux -o pipefail
|
set -eu -o pipefail
|
||||||
export PATH="${
|
export PATH="${
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
coreutils
|
coreutils
|
||||||
@@ -17,6 +17,12 @@ writeShellScriptBin "deploy-docs" ''
|
|||||||
]
|
]
|
||||||
}"
|
}"
|
||||||
|
|
||||||
|
#########################################
|
||||||
|
# #
|
||||||
|
# DO NOT PRINT THE SSH KEY TO THE LOGS #
|
||||||
|
# #
|
||||||
|
#########################################
|
||||||
|
set +x
|
||||||
if [ -n "''${SSH_HOMEPAGE_KEY:-}" ]; then
|
if [ -n "''${SSH_HOMEPAGE_KEY:-}" ]; then
|
||||||
echo "$SSH_HOMEPAGE_KEY" > ./ssh_key
|
echo "$SSH_HOMEPAGE_KEY" > ./ssh_key
|
||||||
chmod 600 ./ssh_key
|
chmod 600 ./ssh_key
|
||||||
@@ -24,6 +30,13 @@ writeShellScriptBin "deploy-docs" ''
|
|||||||
else
|
else
|
||||||
sshExtraArgs=
|
sshExtraArgs=
|
||||||
fi
|
fi
|
||||||
|
set -x
|
||||||
|
###########################
|
||||||
|
# #
|
||||||
|
# END OF DANGER ZONE #
|
||||||
|
# #
|
||||||
|
###########################
|
||||||
|
|
||||||
|
|
||||||
rsync \
|
rsync \
|
||||||
-e "ssh -o StrictHostKeyChecking=no $sshExtraArgs" \
|
-e "ssh -o StrictHostKeyChecking=no $sshExtraArgs" \
|
||||||
|
|||||||
Reference in New Issue
Block a user