File tree Expand file tree Collapse file tree 4 files changed +46
-18
lines changed
Expand file tree Collapse file tree 4 files changed +46
-18
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push to DockerHub
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ REGISTRY : docker.io
9+ IMAGE_NAME : appwrite/base
10+ TAG : ${{ github.event.release.tag_name }}
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout the repo
17+ uses : actions/checkout@v3
18+
19+ - name : Login to DockerHub
20+ uses : docker/login-action@v2
21+ with :
22+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23+ password : ${{ secrets.DOCKERHUB_TOKEN }}
24+
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@v2
27+
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@v2
30+
31+ - name : Build and push
32+ uses : docker/build-push-action@v4
33+ with :
34+ context : .
35+ platforms : linux/amd64,linux/arm64
36+ push : true
37+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
Original file line number Diff line number Diff line change 1-
21dist : focal
32
43arch :
@@ -33,13 +32,3 @@ install:
3332
3433script :
3534 - container-structure-test test --image appwrite-base-test --config tests.yaml
36-
37- deploy :
38- - provider : script
39- edge : true
40- script : docker run --privileged --rm tonistiigi/binfmt --install all &&
41- docker buildx create --use &&
42- docker buildx build --platform linux/amd64,linux/arm64/v8 -t appwrite/base:$TRAVIS_TAG ./ --push
43- on :
44- tags : true
45- condition : " $TRAVIS_CPU_ARCH = amd64"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ENV PHP_REDIS_VERSION=5.3.7 \
66 PHP_IMAGICK_VERSION=3.7.0 \
77 PHP_YAML_VERSION=2.2.2 \
88 PHP_MAXMINDDB_VERSION=v1.11.0 \
9- PHP_SCRYPT_COMMIT_SHA="af0378533cbde920aa1985405c12423577685c5d " \
9+ PHP_SCRYPT_COMMIT_SHA="9a8e615cb210d8564213be90a229c95c07c3f20a " \
1010 PHP_ZSTD_VERSION="4504e4186e79b197cfcb75d4d09aa47ef7d92fe9" \
1111 PHP_BROTLI_VERSION="7ae4fcd8b81a65d7521c298cae49af386d1ea4e3" \
1212 PHP_SNAPPY_VERSION="bfefe4906e0abb1f6cc19005b35f9af5240d9025" \
2121 g++ \
2222 git \
2323 zlib-dev \
24- brotli-dev \
2524 openssl-dev \
2625 yaml-dev \
2726 imagemagick \
@@ -139,15 +138,13 @@ RUN git clone --recursive https://github.com/kjdev/php-ext-snappy.git \
139138# # Scrypt Extension
140139FROM compile AS scrypt
141140RUN \
142- git clone --depth 1 --branch master https://github.com/DomBlack/php-scrypt.git && \
141+ git clone --depth 1 https://github.com/DomBlack/php-scrypt.git && \
143142 cd php-scrypt && \
144- git reset --hard $PHP_SCRYPT_COMMIT_SHA && \
143+ git checkout $PHP_SCRYPT_COMMIT_SHA && \
145144 phpize && \
146145 ./configure --enable-scrypt && \
147146 make && make install
148147
149-
150-
151148FROM php:8.0.18-cli-alpine3.15 as final
152149
153150LABEL maintainer="team@appwrite.io"
@@ -172,8 +169,9 @@ RUN \
172169 curl-dev \
173170 && apk add --no-cache \
174171 libstdc++ \
175- certbot \
172+ rsync \
176173 brotli-dev \
174+ lz4-dev \
177175 yaml-dev \
178176 imagemagick \
179177 imagemagick-dev \
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ commandTests:
108108 command : " magick"
109109 args : ["--version"]
110110 expectedOutput : [".*ImageMagick 7.1.0-16.*"]
111+ - name : ' rsync command'
112+ command : " rsync"
113+ args : ["--version"]
114+ expectedOutput : ["rsync version 3.*"]
111115 - name : ' Certbot command'
112116 command : " certbot"
113117 args : ["--version"]
You can’t perform that action at this time.
0 commit comments