Skip to content

Commit

Permalink
allow for balena machine ssh target
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Jun 29, 2023
1 parent 1788d53 commit 06e0fef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/lib/common/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ module.exports = class Worker {
this.workerPort = '22';
this.sshPrefix = `host ${this.uuid} `;
}
if (this.url.includes(`bm.balena-dev.com`)) {
// worker is a testbot connected to balena cloud - we ssh into it via the vpn
this.uuid = this.url.match(
/https:\/\/([^\.]+)\./,
)[1];
this.workerHost = `ssh.devices.bm.balena-dev.com`;
this.workerUser = this.username;
this.workerPort = '222';
this.sshPrefix = `host ${this.uuid} `;
}
}

/**
Expand Down

0 comments on commit 06e0fef

Please sign in to comment.