forked from jodogne/OrthancDocker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (47 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Disabled - cross-arch build time > 50 mins on Travis VMs
branches:
only:
- xarch
dist: trusty
language: python
group: edge
python:
- "3.6"
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
global:
- SERVICE1="orthanc"
- SERVICE2="orthanc-plugins"
matrix:
- ARCH_TAG="amd64"
- ARCH_TAG="arm32v7"
- ARCH_TAG="arm64v8"
before_install:
# Put docker into "experimental" for manifest function
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' > "$HOME/.docker/config.json"
- pip3 install pyyaml # for docker-manifest
# Register qemu as cross-compiler
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
install:
# Build image
- docker-compose build $SERVICE1-$ARCH_TAG $SERVICE2-$ARCH_TAG
script: true
after_success:
# Login to docker for push
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker tag $SERVICE1-$ARCH_TAG $DOCKER_USERNAME/$SERVICE1:latest-$ARCH_TAG
- docker push $DOCKER_USERNAME/$SERVICE1:latest-$ARCH_TAG
- docker tag $SERVICE2-$ARCH_TAG $DOCKER_USERNAME/$SERVICE2:latest-$ARCH_TAG
- docker push $DOCKER_USERNAME/$SERVICE2:latest-$ARCH_TAG
jobs:
include:
- stage: deploy
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- python3 docker-manifest.py -d $DOCKER_USERNAME orthanc orthanc-plugins