2020-06-04 18:56:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function assert_success() {
|
|
|
|
"${@}"
|
|
|
|
local status=${?}
|
|
|
|
if [ ${status} -ne 0 ]; then
|
|
|
|
echo "### Error ${status} at: ${BASH_LINENO[*]} ###"
|
|
|
|
exit ${status}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2023-05-05 16:27:35 +00:00
|
|
|
version="2.387.3"
|
2020-06-04 18:56:10 +00:00
|
|
|
|
|
|
|
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
|
2020-10-10 06:08:45 +00:00
|
|
|
assert_success docker push insanusmokrassar/jenkins:$version
|
|
|
|
assert_success docker push insanusmokrassar/jenkins:latest
|