forked from stjohnjohnson/smartthings-mqtt-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: minimal
dist: bionic
services:
- docker
branches:
only:
- master
env:
- ARCH=amd64
- ARCH=arm32v6
- ARCH=arm64v8
install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- docker build --build-arg ARCH=$ARCH -f Dockerfile.multiarch -t $TRAVIS_REPO_SLUG:latest-$ARCH .
- '[ "$TRAVIS_EVENT_TYPE" != push ] || docker push $TRAVIS_REPO_SLUG:latest-$ARCH'
script: skip
jobs:
include:
- stage: manifest
if: type = push
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- |-
docker manifest create $TRAVIS_REPO_SLUG:latest \
$TRAVIS_REPO_SLUG:latest-amd64 \
$TRAVIS_REPO_SLUG:latest-arm32v6 \
$TRAVIS_REPO_SLUG:latest-arm64v8
- docker manifest annotate $TRAVIS_REPO_SLUG:latest $TRAVIS_REPO_SLUG:latest-amd64 --os linux --arch amd64
- docker manifest annotate $TRAVIS_REPO_SLUG:latest $TRAVIS_REPO_SLUG:latest-arm32v6 --os linux --arch arm --variant v6
- docker manifest annotate $TRAVIS_REPO_SLUG:latest $TRAVIS_REPO_SLUG:latest-arm64v8 --os linux --arch arm64 --variant v8
- docker manifest push $TRAVIS_REPO_SLUG:latest
script: skip