mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 04:26:51 +00:00
backwards compatibility of dockerfile
This commit is contained in:
@@ -5,15 +5,15 @@ if [ -z "${RUNNER_NAME}" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${RUNNER_ORG}" ]; then
|
if [ -n "${RUNNER_ORG}" -a -n "${RUNNER_REPO}" ]; then
|
||||||
echo "RUNNER_ORG must be set" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
ATTACH="${RUNNER_ORG}"
|
|
||||||
|
|
||||||
if [ ! -z "${RUNNER_REPO}" ]; then
|
|
||||||
ATTACH="${RUNNER_ORG}/${RUNNER_REPO}"
|
ATTACH="${RUNNER_ORG}/${RUNNER_REPO}"
|
||||||
|
elif [ -n "${RUNNER_ORG}" ]; then
|
||||||
|
ATTACH="${RUNNER_ORG}"
|
||||||
|
elif [ -n "${RUNNER_REPO}" ]; then
|
||||||
|
ATTACH="${RUNNER_REPO}"
|
||||||
|
else
|
||||||
|
echo "At least one of RUNNER_ORG or RUNNER_REPO must be set" 1>&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${RUNNER_TOKEN}" ]; then
|
if [ -z "${RUNNER_TOKEN}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user