From 42ab3923c1484cdf40e3f7b365e8ceffc8e67596 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 16 Oct 2018 21:37:46 +0100 Subject: [PATCH 1/2] Break up the travis release phase --- .travis.yml | 16 ++++++++++++++++ scripts/docker-push.sh | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a5e69ea..4f0b898 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,22 @@ jobs: env: TOXENV=docker-build ARCH=armhf - stage: release + env: TOXENV=docker-build ARCH=aarch64 + script: + - echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin + - bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR} + - stage: release + env: TOXENV=docker-build ARCH=i386 + script: + - echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin + - bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR} + - stage: release + env: TOXENV=docker-build ARCH=amd64 + script: + - echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin + - bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR} + - stage: release + env: TOXENV=docker-build ARCH=armhf script: - echo "$DOCKER_PASSWORD" | docker login -u ${DOCKER_USERNAME} --password-stdin - bash scripts/docker-push.sh ${TRAVIS_BUILD_DIR} diff --git a/scripts/docker-push.sh b/scripts/docker-push.sh index 55d9b25..f8f021e 100755 --- a/scripts/docker-push.sh +++ b/scripts/docker-push.sh @@ -12,5 +12,5 @@ docker run -it --rm --privileged --name "dropbox-upload" \ --image "d0ugal/hassio-dropbox-upload-{arch}" \ --target "dropbox-upload" \ --git \ - --all \ + --${ARCH:-all} \ --push From d337cec4f46456196262db1b4a85b5927573d3de Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 16 Oct 2018 21:40:00 +0100 Subject: [PATCH 2/2] Bump the version to test the new release phase --- dropbox-upload/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbox-upload/config.json b/dropbox-upload/config.json index 43d1933..566562d 100644 --- a/dropbox-upload/config.json +++ b/dropbox-upload/config.json @@ -1,6 +1,6 @@ { "name": "Dropbox Upload", - "version": "1.0.10", + "version": "1.0.11", "slug": "dropbox_upload", "description": "Upload snapshots to Dropbox!", "startup": "application",