netbox-docker/hooks/push

15 lines
361 B
Plaintext
Raw Normal View History

2019-02-01 02:58:07 -06:00
#!/bin/bash
. hooks/common
2019-10-15 05:28:04 -05:00
if [ "${SOURCE_BRANCH}" == "master" ] || [ "${DEBUG}" == "true" ]; then
if [ "${SOURCE_BRANCH}" != "master" ]; then
2019-10-14 16:10:42 -05:00
echo "⚠️⚠️⚠️ Would exit, but DEBUG is '${DEBUG}'".
fi
run_build --push-only
else
echo "⚠️⚠️⚠️ Only pushing on 'main' branch, but current branch is '${SOURCE_BRANCH}'"
exit 0
fi