shlink-web-client/hooks/build

10 lines
243 B
Bash
Executable file

#!/bin/bash
set -ex
if [[ ${SOURCE_BRANCH} == 'master' ]]; then
SHLINK_WEB_CLIENT_RELEASE='latest'
else
SHLINK_WEB_CLIENT_RELEASE=${SOURCE_BRANCH#?}
fi
docker build --build-arg VERSION=${SHLINK_WEB_CLIENT_RELEASE} -t ${IMAGE_NAME} .