mirror of
https://github.com/InsanusMokrassar/JenkinsDocker.git
synced 2024-12-23 00:57:19 +00:00
18 lines
475 B
Plaintext
18 lines
475 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
function assert_success() {
|
||
|
"${@}"
|
||
|
local status=${?}
|
||
|
if [ ${status} -ne 0 ]; then
|
||
|
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
|
||
|
exit ${status}
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
version="2.222.4"
|
||
|
|
||
|
assert_success docker build -t jenkins:$version ./
|
||
|
assert_success docker tag jenkins:$version insanusmokrassar/jenkins:$version
|
||
|
assert_success docker tag jenkins:$version insanusmokrassar/jenkins:latest
|
||
|
assert_success docker push insanusmokrassar/jenkins
|