Create deploy.sh

This commit is contained in:
InsanusMokrassar 2021-07-19 18:12:09 +06:00 committed by GitHub
parent 93d1285b79
commit 078f2e643d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
deploy.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
function assert_success() {
"${@}"
local status=${?}
if [ ${status} -ne 0 ]; then
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
exit ${status}
fi
}
version="latest"
assert_success docker build -t murmur:$version ./
assert_success docker tag murmur:$version insanusmokrassar/murmur:$version
assert_success docker push insanusmokrassar/murmur:$version