mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 14:56:10 +08:00
1caf4104ba
This allows us to create do a multi-arch build, resulting in an image which is useful even on low-end IoT devices.
17 lines
397 B
Bash
Executable file
17 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
|