Auto-merge for PR #549 via VersionBot

Use i386-nlp for supervisor releases for quark boards
This commit is contained in:
resin-io-versionbot[bot] 2018-01-24 19:52:48 +00:00 committed by GitHub
commit 79277fea68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## v6.6.2 - 2018-01-24
* Use i386-nlp for supervisor releases for quark boards #549 [Pablo Carranza Velez]
## v6.6.1 - 2018-01-19
* Improve caching in dindctl build and update README #526 [Pablo Carranza Velez]

View File

@ -38,6 +38,7 @@ if (!_.isEmpty(arch) && !_.includes(supportedArchitectures, arch)) {
process.exit(1);
}
const archs = _.isEmpty(arch) ? supportedArchitectures : [ arch ];
const quarkSlugs = [ 'iot2000', 'cybertan-ze250' ];
const requestOpts = {
gzip: true,
@ -66,14 +67,18 @@ resinApi._request(_.extend({
return Promise.mapSeries(deviceTypes, (deviceType) => {
if (archs.indexOf(deviceType.arch) >= 0) {
const customOptions = {};
let arch = deviceType.arch;
if (_.isEmpty(apiToken)) {
customOptions.apikey = apikey;
}
if (quarkSlugs.indexOf(deviceType.slug) >= 0) {
arch = 'i386-nlp';
}
console.log(`Deploying ${tag} for ${deviceType.slug}`);
return resinApi.post({
resource: 'supervisor_release',
body: {
image_name: `resin/${deviceType.arch}-supervisor`,
image_name: `resin/${arch}-supervisor`,
supervisor_version: tag,
device_type: deviceType.slug,
is_public: true

View File

@ -1,7 +1,7 @@
{
"name": "resin-supervisor",
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
"version": "6.6.1",
"version": "6.6.2",
"license": "Apache-2.0",
"repository": {
"type": "git",