mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-07 23:14:39 +08:00
This allows us to create do a multi-arch build, resulting in an image which is useful even on low-end IoT devices.
16 lines
397 B
Bash
Executable file
16 lines
397 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "No alpine build versions supplied"
|
|
echo "example usage: $0 latest 3.10 3.9"
|
|
exit 1
|
|
fi
|
|
|
|
# Authenticate to push images
|
|
docker login
|
|
|
|
# build, tag, and push alpine versions supplied as script arguments
|
|
base_repo=boky/postfix
|
|
for alpine_version in "$@"; do
|
|
$(dirname $0)/build.sh -t "$base_repo" --build-arg=ALPINE_VERSION="$alpine_version"
|
|
done
|