-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
executable file
·34 lines (26 loc) · 1.67 KB
/
build.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/sh
################################################################################
#
# DEPRECATION NOTICE
#
# This file should still work for building images locally, however the official
# builds of imarc/ops docker images is now been moved to a CI/CD pipeline.
#
################################################################################
set -e
if [ -z $OPS_VERSION ]; then
OPS_VERSION=$(jq -r .version package.json)
fi
PLATFORM="${PLATFORM-linux/amd64,linux/arm64,linux/arm64/v8}"
echo "Building docker images for $PLATFORM and ops version $OPS_VERSION..."
echo -n $OPS_VERSION > VERSION
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php72:$OPS_VERSION" images/php72 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php73:$OPS_VERSION" images/php73 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php74:$OPS_VERSION" images/php74 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php80:$OPS_VERSION" images/php80 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php81:$OPS_VERSION" images/php81 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php82:$OPS_VERSION" images/php82 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-apache-php83:$OPS_VERSION" images/php83 --progress=plain --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-node:$OPS_VERSION" images/node --push
docker buildx build --platform=$PLATFORM -t "imarcagency/ops-utils:$OPS_VERSION" images/utils --push
echo "Complete."