forked from appwrite/docker-smtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.19 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
---
notifications:
email:
language: minimal
arch:
- amd64
- arm64
os: linux
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:
- docker ps -a
- docker-compose logs smtp
- >
if : >/dev/tcp/localhost/25; then
echo 'Connection available.'
travis_terminate 0
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/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x,linux/386 -t appwrite/smtp:$TRAVIS_TAG ./ --push
on:
tags: true
condition: "$TRAVIS_CPU_ARCH = amd64"