Skip to content

Commit

Permalink
Use new versioning, fix hashed pw
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 23, 2024
1 parent d52a4a2 commit 0b95426
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 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": "0.69.0",
"version": "1.0.241123",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions src/binaries/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"x64": {
"rubyVersionsList": [
"3.3.5",
"3.3.6",
"3.2.6",
"3.1.6",
"3.0.7",
Expand Down Expand Up @@ -62,12 +62,12 @@
"3.0.7": "https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.0.7-ubuntu-24.04.tar.gz",
"3.1.6": "https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.1.6-ubuntu-24.04.tar.gz",
"3.2.6": "https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.2.6-ubuntu-24.04.tar.gz",
"3.3.5": "https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.3.5-ubuntu-24.04.tar.gz"
"3.3.6": "https://github.com/ruby/ruby-builder/releases/download/toolcache/ruby-3.3.6-ubuntu-24.04.tar.gz"
}
},
"arm64": {
"rubyVersionsList": [
"3.3.5",
"3.3.6",
"3.2.6",
"3.1.6",
"3.0.7",
Expand Down
4 changes: 3 additions & 1 deletion src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,12 @@ export default async function runConfig(config, domain, writer, sandbox = false)
if (cb) cb('', 124);
}, maxExecutionTime).unref();

const pw = domaindata['Password for mysql'] || domaindata['Password or postgres'] || domaindata['Password'];

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='${domaindata['Password']}'`, false);
await sshExec(`USERNAME='${domaindata['Username']}' PASSWORD='${pw}'`, 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 0b95426

Please sign in to comment.