mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-24 17:04:09 +01:00
15 lines
357 B
Bash
Executable File
15 lines
357 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. hooks/common
|
|
|
|
if [ "${SOURCE_BRANCH}" == "main" ] || [ "${DEBUG}" == "true" ]; then
|
|
if [ "${SOURCE_BRANCH}" != "main" ]; then
|
|
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
|