diff --git a/CHANGELOG.md b/CHANGELOG.md index 6646a645..3a6ba05e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/). +## v4.3.0 - 2017-06-05 + +* Switch to generating the BASE_IMAGE_VERSION in the makefile, so that the makefile targets can use an accurate version by default [Pagan Gazzard] + ## v4.2.4 - 2017-05-12 * Fix typo in how hostOSVersionPath was camel-cased [Pablo Carranza Velez] diff --git a/Makefile b/Makefile index ddd60913..ba340a0e 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ ARCH = rpi# rpi/amd64/i386/armv7hf/armel DEPLOY_REGISTRY = SUPERVISOR_VERSION = master -ESCAPED_BASE_IMAGE_TAG = resin\/$(ARCH)-supervisor-base:$(SUPERVISOR_VERSION) +BASE_IMAGE_VERSION = $(shell find base-image -print0 | LC_ALL=C sort -z | tar --null -cf - --no-recursion --mtime=@0 --owner=root --group=root --numeric-owner -T - | md5sum | awk -F " " '{print $$1}') +ESCAPED_BASE_IMAGE_TAG = resin\/$(ARCH)-supervisor-base:$(BASE_IMAGE_VERSION) DOCKER_VERSION:=$(shell docker version --format '{{.Server.Version}}') DOCKER_MAJOR_VERSION:=$(word 1, $(subst ., ,$(DOCKER_VERSION))) @@ -226,4 +227,7 @@ test-integration: gosuper resin/go-supervisor-$(ARCH):$(SUPERVISOR_VERSION) \ go test -v ./supertest +base-image-version: + @echo $(BASE_IMAGE_VERSION) + .PHONY: supervisor deploy supervisor-dind run-supervisor gosuper nodesuper diff --git a/automation/jenkins_build.sh b/automation/jenkins_build.sh index a6904030..3129456f 100755 --- a/automation/jenkins_build.sh +++ b/automation/jenkins_build.sh @@ -6,7 +6,7 @@ export ESCAPED_BRANCH_NAME=$(echo $sourceBranch | sed 's/[^a-z0-9A-Z_.-]/-/g') git submodule update --init --recursive git clean -fxd base-image git submodule foreach --recursive git clean -fxd -BASE_IMAGE_VERSION=$(find base-image -print0 | LC_ALL=C sort -z | tar --null -cf - --no-recursion --mtime=@0 --owner=root --group=root --numeric-owner -T - | md5sum | awk -F " " '{print $1}') +BASE_IMAGE_VERSION=$(make base-image-version) export BASE_IMAGE_REPO=resin/$ARCH-supervisor-base export BASE_IMAGE_TAG=resin/$ARCH-supervisor-base:$BASE_IMAGE_VERSION diff --git a/package.json b/package.json index c1373d27..2dfaee9e 100644 --- a/package.json +++ b/package.json @@ -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": "4.2.4", + "version": "4.3.0", "license": "Apache-2.0", "repository": { "type": "git",