Skip to content

Commit

Permalink
Allow explicit pass vars
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Dec 11, 2024
1 parent fcd9c3b commit efb8e73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "1.0.241124",
"version": "1.0.241211",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
8 changes: 7 additions & 1 deletion src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,13 @@ export default async function runConfig(config, domain, writer, sandbox = false)
await sshExec('unset HISTFILE TERM', false); // https://stackoverflow.com/a/9039154/3908409
await sshExec(`export CI=true CONTINUOUS_INTEGRATION=true LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 `, false);
await sshExec(`export PIP_PROGRESS_BAR=off BUILDKIT_PROGRESS=plain`, false);
await sshExec(`USERNAME='${domaindata['Username']}' PASSWORD='${pw}'`, false);
await sshExec(` USERNAME='${domaindata['Username']}' PASSWORD='${pw}'`, false);
if (domaindata['Password for mysql']) {
await sshExec(` MY_PASSWORD='${domaindata['Password for mysql']}'`, false);
}
if (domaindata['Password or postgres']) {
await sshExec(` PG_PASSWORD='${domaindata['Password or postgres']}'`, false);
}
const firewallOn = await firewallStatus();
if (config.subdomain) {
await runConfigSubdomain(config, domaindata, [config.subdomain, domain].join('.'), sshExec, writeLog, virtExec, firewallOn);
Expand Down

0 comments on commit efb8e73

Please sign in to comment.