mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-29 13:54:18 +00:00
Use i386-nlp for supervisor releases for quark boards
Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
9d88be5dcf
commit
03c58a2bfa
@ -38,6 +38,7 @@ if (!_.isEmpty(arch) && !_.includes(supportedArchitectures, arch)) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
const archs = _.isEmpty(arch) ? supportedArchitectures : [ arch ];
|
const archs = _.isEmpty(arch) ? supportedArchitectures : [ arch ];
|
||||||
|
const quarkSlugs = [ 'iot2000', 'cybertan-ze250' ];
|
||||||
|
|
||||||
const requestOpts = {
|
const requestOpts = {
|
||||||
gzip: true,
|
gzip: true,
|
||||||
@ -66,14 +67,18 @@ resinApi._request(_.extend({
|
|||||||
return Promise.mapSeries(deviceTypes, (deviceType) => {
|
return Promise.mapSeries(deviceTypes, (deviceType) => {
|
||||||
if (archs.indexOf(deviceType.arch) >= 0) {
|
if (archs.indexOf(deviceType.arch) >= 0) {
|
||||||
const customOptions = {};
|
const customOptions = {};
|
||||||
|
let arch = deviceType.arch;
|
||||||
if (_.isEmpty(apiToken)) {
|
if (_.isEmpty(apiToken)) {
|
||||||
customOptions.apikey = apikey;
|
customOptions.apikey = apikey;
|
||||||
}
|
}
|
||||||
|
if (quarkSlugs.indexOf(deviceType.slug) >= 0) {
|
||||||
|
arch = 'i386-nlp';
|
||||||
|
}
|
||||||
console.log(`Deploying ${tag} for ${deviceType.slug}`);
|
console.log(`Deploying ${tag} for ${deviceType.slug}`);
|
||||||
return resinApi.post({
|
return resinApi.post({
|
||||||
resource: 'supervisor_release',
|
resource: 'supervisor_release',
|
||||||
body: {
|
body: {
|
||||||
image_name: `resin/${deviceType.arch}-supervisor`,
|
image_name: `resin/${arch}-supervisor`,
|
||||||
supervisor_version: tag,
|
supervisor_version: tag,
|
||||||
device_type: deviceType.slug,
|
device_type: deviceType.slug,
|
||||||
is_public: true
|
is_public: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user