Skip to content

Commit e5d5e28

Browse files
Merge branch 'main' into feat-add-postgres-driver
2 parents a1cace5 + eee16d7 commit e5d5e28

File tree

4 files changed

+46
-18
lines changed

4 files changed

+46
-18
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}

.travis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
dist: focal
32

43
arch:
@@ -33,13 +32,3 @@ install:
3332

3433
script:
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"

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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" \
@@ -21,7 +21,6 @@ RUN \
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
140139
FROM compile AS scrypt
141140
RUN \
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-
151148
FROM php:8.0.18-cli-alpine3.15 as final
152149

153150
LABEL 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 \

tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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"]

0 commit comments

Comments
 (0)