From 69c6e8bbfa959abf8d7a133ef75429ef8e39592d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 10 May 2021 17:14:58 +0545 Subject: [PATCH 1/4] auto deploy with travis --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.travis.yml b/.travis.yml index a78d687..4619934 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,13 @@ 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 + - docker run --rm --privileged linuxkit/binfmt:v0.8 + - docker buildx create --use install: - docker-compose up -d @@ -29,3 +36,10 @@ 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 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 \ No newline at end of file From be32bf0512ec57168bd9ff3a5466d67a213e4815 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 12 May 2021 11:08:03 +0545 Subject: [PATCH 2/4] removing arm arch --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4619934..c1e0051 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ language: minimal arch: - amd64 - - arm64 + # - arm64 # - ppc64le os: linux From 4d0bf1df624654b74a6c1724f5962537b82ebb05 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 9 Jun 2021 12:42:03 +0545 Subject: [PATCH 3/4] fix deploy cpu arch --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c1e0051..ad2baa1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,8 @@ language: minimal arch: - amd64 - # - arm64 - # - ppc64le + - arm64 + - ppc64le os: linux @@ -42,4 +42,5 @@ deploy: edge: true script: 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 \ No newline at end of file + tags: true + condition: $TRAVIS_CPU_ARCH = amd64 \ No newline at end of file From 36d5a2f915c9eb635f90e27c55df8c6dc08f4fa8 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 13 Jun 2021 13:32:10 +0545 Subject: [PATCH 4/4] fix buildx issue --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ad2baa1..ec7b234 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,6 @@ before_install: echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin fi - docker --version - - docker run --rm --privileged linuxkit/binfmt:v0.8 - - docker buildx create --use install: - docker-compose up -d @@ -40,7 +38,9 @@ script: deploy: - provider: script edge: true - script: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x -t appwrite/mariadb:$TRAVIS_TAG ./ --push + 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 \ No newline at end of file