wordpress/bin/build
2021-03-18 21:39:14 +01:00

11 lines
276 B
Bash
Executable File

#!/usr/bin/env sh
WP_VERSION="${1:-}"
if [ -z "${WP_VERSION}" ]; then
echo "Error: WP_VERSION is null"
exit 1
fi
docker build --build-arg WP_VERSION=${WP_VERSION} --tag "nlss/wordpress:${WP_VERSION}" --tag "nlss/wordpress:latest" .
docker push --all-tags nlss/wordpress