/[LeafOK_CVS]/lbbs-combo/build.sh
ViewVC logotype

Annotation of /lbbs-combo/build.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Sun Jan 25 00:30:37 2026 UTC (7 weeks, 2 days ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +8 -8 lines
Content type: text/x-sh
Rename dockerfiles
Trigger Docker image publish on pushing tag

1 sysadm 1.1 #!/bin/sh
2    
3 sysadm 1.2 if [ ! -n "$DOCKER_PLATFORMS" ]; then
4     DOCKER_PLATFORMS="linux/amd64,linux/arm64"
5     fi
6    
7     if [ ! -n "$RUN_PLATFORM" ]; then
8     RUN_PLATFORM="linux/amd64"
9     fi
10    
11 sysadm 1.1 git submodule update --init --recursive
12    
13 sysadm 1.2 docker buildx ls | grep multi-platform-builder
14    
15     if [ $? -ne 0 ]; then
16     docker buildx create --use --name multi-platform-builder --platform=$DOCKER_PLATFORMS
17     else
18     docker buildx use multi-platform-builder
19     fi
20    
21     docker buildx inspect multi-platform-builder --bootstrap
22    
23 sysadm 1.4 docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.solr --tag leafok/lbbs-solr:combo
24     docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.apache --tag leafok/lbbs-apache:combo
25     docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.php --tag leafok/lbbs-php:combo
26     docker buildx build . --platform=$DOCKER_PLATFORMS --file Dockerfile/dockerfile.bbsd --tag leafok/lbbs-bbsd:combo
27 sysadm 1.2
28 sysadm 1.4 docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.solr --tag leafok/lbbs-solr:combo --load
29     docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.apache --tag leafok/lbbs-apache:combo --load
30     docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.php --tag leafok/lbbs-php:combo --load
31     docker buildx build . --platform=$RUN_PLATFORM --file Dockerfile/dockerfile.bbsd --tag leafok/lbbs-bbsd:combo --load

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1