php/build.sh

30 lines
706 B
Bash
Raw Normal View History

2023-05-29 23:58:06 +02:00
#!/bin/sh -e
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:49:12 +02:00
docker buildx build --pull --load --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: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