Skip to content

Commit

Permalink
complete script
Browse files Browse the repository at this point in the history
  • Loading branch information
hatamiarash7 committed Aug 7, 2022
1 parent 751a304 commit 4ca230e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@ APP="$3"
CONTAINER="$4"
IMAGE="$5"

echo "Hello"
echo "*****************************************"
echo "* *"
echo "* Welcome to ArvanCloud PaaS Action *"
echo "* *"
echo "*****************************************"

mkdir -p /service

echo " -----> Download ArvanCloud CLI tool version: $CLI_VERSION"

wget https://github.com/arvancloud/cli/releases/download/v${CLI_VERSION}/arvan_${CLI_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C /service/

time=$(ls /service | grep arvan)
echo " -----> Login ..."

/service/arvan login <<< """$AUTH"""

echo " -----> Deploy ..."

echo "::set-output name=time::$time"
arvan paas set image deployment ${APP} ${CONTAINER}=${IMAGE}

0 comments on commit 4ca230e

Please sign in to comment.