mirror of
https://github.com/InsanusMokrassar/MurmurRPI.git
synced 2024-11-30 11:28:45 +00:00
Create deploy.sh
This commit is contained in:
parent
93d1285b79
commit
078f2e643d
16
deploy.sh
Normal file
16
deploy.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user