2018-11-24 19:19:53 +01:00
|
|
|
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
|
|
|
|
echo "We are building a normal branch, deploying as such..."
|
2018-11-24 19:54:36 +01:00
|
|
|
curl "http://pr.radarr.video:4466/deploy?url=https%3A%2F%2F${CIRCLE_BUILD_NUM}-77323220-gh.circle-artifacts.com%2F0%2Fartifacts%2FRadarr.${CIRCLE_BRANCH//\//-}.$BUILD_VERSION.$CIRCLE_BUILD_NUM.linux.tar.gz&b=branch&name=${CIRCLE_BRANCH}"
|
2018-11-24 19:19:53 +01:00
|
|
|
else
|
|
|
|
echo "We are building a pr, deploying as such..."
|
2018-11-24 19:54:36 +01:00
|
|
|
curl "http://pr.radarr.video:4466/deploy?url=https%3A%2F%2F${CIRCLE_BUILD_NUM}-77323220-gh.circle-artifacts.com%2F0%2Fartifacts%2FRadarr.${CIRCLE_BRANCH//\//-}.$BUILD_VERSION.$CIRCLE_BUILD_NUM.linux.tar.gz&b=pr&name=${CIRCLE_PR_NUMBER}"
|
2018-11-24 19:19:53 +01:00
|
|
|
fi
|