-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
50 lines (43 loc) · 1.2 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
---
notifications:
email:
- team@appwrite.io
language: minimal
arch:
- amd64
- arm64
os: linux
dist: focal
before_install:
- curl -fsSL https://get.docker.com | sh
- echo '{"experimental":"enabled"}' | sudo tee /etc/docker/daemon.json
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
- sudo service docker start
- >
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
fi
- docker --version
install:
- docker-compose up -d
script:
- sleep 10
- docker ps -a
- docker-compose logs influxdb
- >
if : >/dev/tcp/localhost/8086; then
echo 'Connection available.'
else
echo 'Connection unavailable.'
travis_terminate 1
fi
deploy:
- provider: script
edge: true
script: docker run --rm --privileged linuxkit/binfmt:v0.8 &&
docker buildx create --use &&
docker buildx build --platform linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x -t appwrite/influxdb:$TRAVIS_TAG ./ --push
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64