mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
Auto-merge for PR #481 via VersionBot
Fix references in deploy-to-resin.js and use github credentials when pushing in pr-to-meta-resin.sh
This commit is contained in:
commit
b58eaf4de4
@ -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.1.4 - 2017-08-07
|
||||
|
||||
* Fix references in deploy-to-resin.js and use github credentials when pushing in pr-to-meta-resin.sh #481 [Pablo Carranza Velez]
|
||||
|
||||
## v6.1.3 - 2017-08-03
|
||||
|
||||
* Avoid starting apps on startup if device has to reboot due to a configuration change [Pablo Carranza Velez]
|
||||
|
@ -68,7 +68,7 @@ resinApi._request(_.extend({
|
||||
if (_.isEmpty(apiToken)) {
|
||||
customOptions.apikey = apikey;
|
||||
}
|
||||
console.log(`Deploying ${supervisor_version} for ${device_type}`);
|
||||
console.log(`Deploying ${tag} for ${deviceType.slug}`);
|
||||
return resinApi.post({
|
||||
resource: 'supervisor_release',
|
||||
body: {
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
# If $PR_1X is "true", an additional PR for 1.X will be created.
|
||||
#
|
||||
# Requires $GITHUB_USERNAME and $GITHUB_PASSWORD to push and create the pull-request.
|
||||
# Requires $GITHUB_USER and $GITHUB_PASSWORD to push and create the pull-request.
|
||||
# Requires $TAG to be set to the supervisor version to use.
|
||||
#
|
||||
|
||||
@ -18,11 +18,13 @@ if [ -z "$TAG" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "$GITHUB_PASSWORD" || -z "$GITHUB_USERNAME" ]]; then
|
||||
echo "GITHUB_USERNAME and GITHUB_PASSWORD are required"
|
||||
if [[ -z "$GITHUB_PASSWORD" || -z "$GITHUB_USER" ]]; then
|
||||
echo "GITHUB_USER and GITHUB_PASSWORD are required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPO_URL=https://github.com/resin-os/meta-resin.git
|
||||
REPO_URL_WITH_CREDENTIALS=https://${GITHUB_USER}:${GITHUB_PASSWORD}@github.com/resin-os/meta-resin.git
|
||||
USER=${USER:-$(whoami)}
|
||||
|
||||
function prepareBranches() {
|
||||
@ -48,25 +50,20 @@ docker-resin-supervisor-disk: Update to ${TAG}
|
||||
|
||||
Changelog-Entry: Update supervisor to ${TAG}
|
||||
Change-Type: patch
|
||||
" <<EOF
|
||||
${GITHUB_USERNAME}
|
||||
${GITHUB_PASSWORD}
|
||||
EOF
|
||||
"
|
||||
|
||||
git push $REPO_URL_WITH_CREDENTIALS $HEAD
|
||||
|
||||
git push origin $HEAD
|
||||
hub pull-request -b ${BASE} -m "${BASE}: Update supervisor to ${TAG}
|
||||
|
||||
Change-Type: patch
|
||||
" <<EOF
|
||||
${GITHUB_USERNAME}
|
||||
${GITHUB_PASSWORD}
|
||||
EOF
|
||||
"
|
||||
|
||||
}
|
||||
|
||||
if [ ! -d "./meta-resin" ]; then
|
||||
echo "Cloning meta-resin..."
|
||||
git clone https://github.com/resin-os/meta-resin.git
|
||||
git clone $REPO_URL
|
||||
else
|
||||
echo "Using available meta-resin repo"
|
||||
fi
|
||||
|
@ -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.1.3",
|
||||
"version": "6.1.4",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
x
Reference in New Issue
Block a user