-
Notifications
You must be signed in to change notification settings - Fork 8
/
buildx.sh
executable file
·34 lines (22 loc) · 903 Bytes
/
buildx.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
26
27
28
29
30
31
32
33
34
#!/bin/bash
ssh aptly@192.168.178.11 -p 8889 /aptly/scripts/daily.sh
# This script uses buildx
# To use/update buildx
# git clone https://github.com/docker/buildx && cd buildx && make install
#ssh -p 8889 aptly@192.168.178.11 "~/bin/daily.sh"
docker buildx rm
docker system prune -f -a
# Ensure the push is only initiated on my build machine
if [ "$(uname -n)" == "build" ]; then PUSH="--push"; fi
#generate dockerfiles and prepare other things
./generate.sh
docker buildx create --use
#for BUILD in base-current phpfpm multiphp nginx-quic nginx-php-quic openssh mail db nginx nginx-php apache apache-misc misc
for BUILD in base-current phpfpm multiphp angie-php nginx-php angie nginx mail db apache apache-misc misc
do
echo "-----------------------------------"
echo "BUILDING TARGET ${BUILD}"
docker buildx bake ${PUSH} ${BUILD}
done
docker buildx rm
docker system prune -f -a