docker-postfix/alpine-versions.sh
Bojan Čekrlić 1caf4104ba Move from Docker Hub builds to GitHub Actions
This allows us to create do a multi-arch build, resulting in
an image which is useful even on low-end IoT devices.
2020-01-31 21:07:42 +01:00

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