File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ sudo : required
2+
3+ services :
4+ - docker
5+
6+ language : bash
7+
8+ script :
9+ - if [ -z "$TRAVIS_TAG" ]; then exit 0; fi
10+ # prepare qemu
11+ - docker run --rm --privileged multiarch/qemu-user-static:register --reset
12+ # get qemu-arm-static binary
13+ - mkdir tmp
14+ - >
15+ pushd tmp &&
16+ QEMU_USER_STATIC_ARCH=arm &&
17+ QEMU_USER_STATIC_DOWNLOAD_URL="https://github.com/multiarch/qemu-user-static/releases/download" &&
18+ QEMU_USER_STATIC_LATEST_TAG=$(curl -s https://api.github.com/repos/multiarch/qemu-user-static/tags &&
19+ | grep 'name.*v[0-9]' \
20+ | head -n 1 \
21+ | cut -d '"' -f 4)
22+ curl -L -o qemu-arm-static.tar.gz "${QEMU_USER_STATIC_DOWNLOAD_URL}/${QEMU_USER_STATIC_LATEST_TAG}/x86_64_qemu-${QEMU_USER_STATIC_ARCH}-static.tar.gz" &&
23+ tar xzf qemu-arm-static.tar.gz &&
24+ popd
25+ # build image
26+ - docker build -t threadrr/firefly-iii-arm32v6-raspberry-pi:build .
27+ # test image
28+ - docker run threadrr/firefly-iii-arm32v6-raspberry-pi:build uname -a
29+ # push image
30+ - >
31+ export TAG=$TRAVIS_TAG
32+ docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
33+ docker tag threadrr/firefly-iii-arm32v6-raspberry-pi:build threadrr/firefly-iii-arm32v6-raspberry-pi:$TAG
34+ docker tag threadrr/firefly-iii-arm32v6-raspberry-pi:build threadrr/firefly-iii-arm32v6-raspberry-pi:latest
35+ docker push threadrr/firefly-iii-arm32v6-raspberry-pi:$TAG
36+ docker push threadrr/firefly-iii-arm32v6-raspberry-pi:latest
You can’t perform that action at this time.
0 commit comments