Skip to content
Snippets Groups Projects
Verified Commit f98eb1a2 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[GraphBot] Fix secrets injection

parent 96c8abdc
No related branches found
No related tags found
No related merge requests found
Pipeline #65622 waiting for manual action
......@@ -62,9 +62,9 @@
"type": "sftp",
"hostname": "uploads.picasoft.net",
"port": 2222,
"login": "pica",
"password": "SFTP_USER",
"remote_path": "SFTP_PASSWORD"
"login": "SFTP_USER",
"password": "SFTP_PASSWORD",
"remote_path": "uploads/graph_output"
}
]
}
......@@ -20,7 +20,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- output:/output
environment:
CONFIG_FILE: "/config.json"
CONFIG_FILE: "/config_creds.json"
OUTPUT_DIRECTORY: "/output"
CERTS_DIRECTORY: "/certs"
LOG_LEVEL: "warning"
......
......@@ -11,8 +11,7 @@ if [ -z "${SFTP_PASSWORD}" ]; then
fi
echo "Inject SFTP credentials..."
sed -i "s/SFTP_USER/$SFTP_USER/g" /entrypoint.sh
sed -i "s/SFTP_PASSWORD/$SFTP_PASSWORD/g" /entrypoint.sh
sed "s/SFTP_USER/$SFTP_USER/g; s/SFTP_PASSWORD/$SFTP_PASSWORD/g" /config.json > /config_creds.json
echo "Launching original entrypoint..."
/entrypoint.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment