Browse Source
chore: fix the bot monitoring of the bb images
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
create-pull-request/patch
Ole Petter
2 years ago
No known key found for this signature in database
GPG Key ID: 399DBE0F4D4B02EB
1 changed files with
2 additions and
2 deletions
-
scripts/linkbot/monitor-bb.js
|
|
@ -10,8 +10,8 @@ export const checkForUpdates = ({ url, latestDate }) => |
|
|
|
if (date === latestDate) { |
|
|
|
return; |
|
|
|
} |
|
|
|
const consoleLinks = await getLinksByMatch(matches[0].link, 'buster-console'); |
|
|
|
const result = await getLinksByMatch(consoleLinks[0].link, 'bone-debian.*.img.xz$').then((links) => `${target}=\"${links[0].link}\"`); |
|
|
|
const consoleLinks = await getLinksByMatch(matches[0].link, 'bullseye-minimal-arm64'); |
|
|
|
const result = await getLinksByMatch(consoleLinks[0].link, 'bbai64-debian.*.img.xz$').then((links) => `${target}=\"${links[0].link}\"`); |
|
|
|
return { newLine: result }; |
|
|
|
}); |
|
|
|
|
|
|
|