Skip to content

Commit

Permalink
Merge pull request #11 from lohanidamodar/feat-travis-deploy
Browse files Browse the repository at this point in the history
Feat auto deploy with travis
  • Loading branch information
eldadfux authored Jun 19, 2021
2 parents 66ccbc6 + 36d5a2f commit 1455c08
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ language: minimal
arch:
- amd64
- arm64
# - ppc64le
- ppc64le

os: linux

Expand All @@ -18,6 +18,11 @@ before_install:
- 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
Expand All @@ -29,3 +34,13 @@ script:
- docker-compose exec -T mariadb ls /docker-entrypoint-initdb.d
- docker-compose exec -T mariadb cat /docker-entrypoint-initdb.d/all.sql
- docker-compose exec -T mariadb mysqldump --user=root --password=rootsecretpassword appwrite

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,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x -t appwrite/mariadb:$TRAVIS_TAG ./ --push
on:
tags: true
condition: $TRAVIS_CPU_ARCH = amd64

0 comments on commit 1455c08

Please sign in to comment.