Skip to content

Commit abcda05

Browse files
committed
tools: deploy dogfood script accepts any git ref
1 parent a3566bd commit abcda05

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/deno/deploy-dogfood.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ if (!consoleCommit) {
4040
Deno.exit(1)
4141
}
4242

43+
const fullCommit = await $`git rev-parse ${consoleCommit}`.text()
44+
45+
if (consoleCommit !== fullCommit) {
46+
console.log(`Resolved ${consoleCommit} to ${fullCommit}`)
47+
}
48+
4349
console.info('Finding nexus zones...')
4450
const zones: string = await $`./tools/dogfood/find-zone.sh nexus`.text()
4551
const gimletNums = zones
@@ -49,7 +55,7 @@ const gimletNums = zones
4955

5056
console.info(`Found: ${JSON.stringify(gimletNums)}\n`)
5157

52-
const TARBALL_URL = `https://dl.oxide.computer/releases/console/${consoleCommit}.tar.gz`
58+
const TARBALL_URL = `https://dl.oxide.computer/releases/console/${fullCommit}.tar.gz`
5359
const TARBALL_FILE = '/tmp/console.tar.gz'
5460

5561
console.info(`Downloading tarball to ${TARBALL_FILE}`)

0 commit comments

Comments
 (0)