mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-02-17 11:57:50 +01:00
11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
|
||
|
LATEST_TAG="$(git describe --tags --abbrev=0)"
|
||
|
WP_VERSION="${1:-$LATEST_TAG}"
|
||
|
|
||
|
if [ -z "${WP_VERSION}" ]; then
|
||
|
echo "Error: WP_VERSION is null"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
docker build --build-arg WP_VERSION=${WP_VERSION} --push --tag "nlss/wordpress:${WP_VERSION}" --tag "nlss/base-alpine:latest" .
|