#!/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