Extraction des secrets
This commit is contained in:
11
deploy.sh
11
deploy.sh
@@ -3,9 +3,16 @@ set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
if [ -f "$SCRIPT_DIR/.env" ]; then
|
||||
# Export all variables from .env for the duration of the script
|
||||
set -a
|
||||
. "$SCRIPT_DIR/.env"
|
||||
set +a
|
||||
fi
|
||||
|
||||
# Configuration
|
||||
DEST_USER="root"
|
||||
DEST_HOST="server-main.home.arpa"
|
||||
DEST_USER="${DEPLOY_DEST_USER:?DEPLOY_DEST_USER manquant}"
|
||||
DEST_HOST="${DEPLOY_DEST_HOST:?DEPLOY_DEST_HOST manquant}"
|
||||
DEST_DIR="/var/lib/www/richard-dern.fr/"
|
||||
HUGO_ENV="production"
|
||||
TARGET_OWNER="caddy:caddy"
|
||||
|
||||
Reference in New Issue
Block a user