mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 11:53:40 +01:00
11 lines
276 B
Bash
Executable File
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 |