Skip to content

Commit

Permalink
Break up the travis release phase
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ugal committed Oct 16, 2018
1 parent e109119 commit 42ab392
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion scripts/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42ab392

Please sign in to comment.