-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_next.sh
25 lines (17 loc) · 1.08 KB
/
build_next.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
DOCKER_CLI_HINTS=false
DOCKER_HOST= docker buildx build --builder php_builder --build-arg TAG=${TAG} . --platform linux/arm64 -t vemcogroup/php-cli:next-arm64 --push &
DOCKER_HOST=ssh://${DOCKER_SERVER} docker pull composer:2
DOCKER_HOST=ssh://${DOCKER_SERVER} docker pull php:${TAG}-fpm-alpine
DOCKER_HOST=ssh://${DOCKER_SERVER} docker buildx inspect php_builder > /dev/null 2>&1
if [ $? -ne 0 ]; then
DOCKER_HOST=ssh://${DOCKER_SERVER} docker buildx create --name php_builder --use
fi
DOCKER_HOST=ssh://${DOCKER_SERVER} docker buildx build --name php_builder --build-arg TAG=${TAG} . --platform linux/amd64 -t vemcogroup/php-cli:next-amd64 --push &
wait
DOCKER_HOST=
docker pull vemcogroup/php-cli:next-amd64
docker buildx imagetools create -t vemcogroup/php-cli:next vemcogroup/php-cli:next-amd64 vemcogroup/php-cli:next-arm64 &
docker buildx imagetools create -t vemcogroup/php-cli:8.3 vemcogroup/php-cli:next-amd64 vemcogroup/php-cli:next-arm64 &
docker buildx imagetools create -t vemcogroup/php-cli:${TAG} vemcogroup/php-cli:next-amd64 vemcogroup/php-cli:next-arm64 &
wait