#!/bin/bash

version=$(sed -rn 's,ENV DOKUWIKI_VERSION (.*),\1,p' Dockerfile)
name=docker.seblu.net/docker/dokuwiki:$version

docker build -t "$name" .

echo =========================================================================
echo ::: IMAGE NOT PUSHED
echo ::: to push image:
echo       docker push "$name"
echo ::: to push as the latest
echo       docker tag "$name" "${name%:*}:latest"
echo       docker push "${name%:*}:latest"
echo =========================================================================
