This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
101 lines (94 loc) · 2.6 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
after_script:
- docker images
sudo: required
before_install:
- sudo rm -f /usr/local/bin/docker-slim
- sudo rm -f /usr/local/bin/docker-slim-sensor
- curl -L https://github.com/docker-slim/docker-slim/releases/download/1.26.1/dist_linux.tar.gz --output docker-slim.tar.gz
- tar xvf docker-slim.tar.gz
- chmod +x dist_linux/docker-slim
- chmod +x dist_linux/docker-slim-sensor
- sudo mv dist_linux/docker-slim /usr/local/bin
- sudo mv dist_linux/docker-slim-sensor /usr/local/bin
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart
- docker-compose --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker ps
before_script:
- cd dockerfiles/"$VERSION"
- IMAGE="thetwintproject/twint:${VERSION/\//-}"
env:
- VERSION=2.1.15
- VERSION=2.1.15/alpine
- VERSION=2.1.15/slim
- VERSION=2.1.14
- VERSION=2.1.14/alpine
- VERSION=2.1.14/slim
- VERSION=2.1.20
- VERSION=2.1.20/alpine
- VERSION=2.1.20/slim
- VERSION=2.1.18
- VERSION=2.1.18/alpine
- VERSION=2.1.18/slim
- VERSION=2.0.0
- VERSION=2.0.0/alpine
- VERSION=2.0.0/slim
- VERSION=2.1.4
- VERSION=2.1.4/alpine
- VERSION=2.1.4/slim
- VERSION=2.1.21
- VERSION=2.1.21/alpine
- VERSION=2.1.21/slim
- VERSION=2.1.12
- VERSION=2.1.12/alpine
- VERSION=2.1.12/slim
- VERSION=2.1.8
- VERSION=2.1.8/alpine
- VERSION=2.1.8/slim
- VERSION=2.1.0
- VERSION=2.1.0/alpine
- VERSION=2.1.0/slim
- VERSION=2.1.9
- VERSION=2.1.9/alpine
- VERSION=2.1.9/slim
- VERSION=2.1.13
- VERSION=2.1.13/alpine
- VERSION=2.1.13/slim
- VERSION=2.1.17
- VERSION=2.1.17/alpine
- VERSION=2.1.17/slim
- VERSION=2.1.11
- VERSION=2.1.11/alpine
- VERSION=2.1.11/slim
- VERSION=2.1.16
- VERSION=2.1.16/alpine
- VERSION=2.1.16/slim
- VERSION=2.1.19
- VERSION=2.1.19/alpine
- VERSION=2.1.19/slim
- VERSION=2.1.6
- VERSION=2.1.6/alpine
- VERSION=2.1.6/slim
- VERSION=2.1.10
- VERSION=2.1.10/alpine
- VERSION=2.1.10/slim
- VERSION=latest
- VERSION=latest/alpine
- VERSION=latest/slim
language: bash
script:
- docker-slim version
- docker build --squash -t "$IMAGE" .
- sudo docker-slim build "$IMAGE"
- sudo docker run -ti "$IMAGE" -h
- docker network create nw-twint
- docker-compose up -d
- docker images
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push "$IMAGE"
services: docker