From e20de5255cb0e66ed1c65158517a8117f81f05d6 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Tue, 6 Dec 2022 22:02:47 -0800 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4cabca3..6482651 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1 +1,10 @@ -caprover deploy --appName $INPUT_APP --appToken $INPUT_TOKEN --caproverUrl $INPUT_SERVER --tarFile ./deploy.tar +#!/bin/sh + +if [ x$INPUT_IMAGE != x ] +then + caprover deploy --caproverUrl $INPUT_SERVER --appToken $INPUT_TOKEN --appName $INPUT_APP -i $INPUT_IMAGE +elif [ x$INPUT_BRANCH != x ] + caprover deploy --caproverUrl $INPUT_SERVER --appToken $INPUT_TOKEN --appName $INPUT_APP -b $INPUT_BRANCH +else + caprover deploy --caproverUrl $INPUT_SERVER --appToken $INPUT_TOKEN --appName $INPUT_APP --tarFile ./deploy.tar +fi