php/build.sh

33 lines
821 B
Bash
Raw Permalink Normal View History

2023-06-13 20:02:54 +02:00
#!/bin/sh -ex
2023-05-29 23:58:06 +02:00
docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD"
docker buildx create --use --name wp --driver remote tcp://192.168.69.206:1234
2023-05-30 00:28:49 +02:00
build() {
cd "$1"
2023-05-30 19:50:04 +02:00
docker buildx build --pull --push --platform linux/riscv64 . -t danog/php:$2 --cache-from danog/php:$2 --cache-to type=inline
2023-05-30 00:28:49 +02:00
cd "$base"
}
cd 8.2
base=$PWD
2023-05-30 19:47:29 +02:00
#build sid/cli/ 8.2
#build sid/fpm/ 8.2-fpm
2023-05-30 00:28:49 +02:00
2023-05-30 19:39:40 +02:00
build alpineedge/cli/ 8.2-alpine
build alpineedge/fpm/ 8.2-fpm-alpine
2023-05-30 19:51:12 +02:00
docker pull --platform linux/riscv64 danog/php:8.2-alpine
docker pull --platform linux/riscv64 danog/php:8.2-fpm-alpine
2023-05-30 19:50:04 +02:00
2023-05-30 19:47:29 +02:00
docker tag danog/php:8.2-alpine danog/php:latest
docker tag danog/php:8.2-alpine danog/php:8.2
docker tag danog/php:8.2-fpm-alpine danog/php:8.2-fpm
2023-05-30 00:28:49 +02:00
2023-05-30 19:47:29 +02:00
docker push danog/php:latest
docker push danog/php:8.2
docker push danog/php:8.2-fpm