diff --git a/entrypoint.sh b/entrypoint.sh index ab459fb..adb7263 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,12 @@ #!/bin/bash set -e -# Clone repo als die nog niet bestaat +# Als repo nog niet bestaat, clone if [ ! -d ".git" ]; then + echo "Cloning repo..." git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} . else + echo "Pulling latest changes..." git reset --hard git clean -fd git pull origin ${GIT_BRANCH:-main} @@ -17,4 +19,4 @@ npm ci npm run build # Start Nuxt -exec npm run start \ No newline at end of file +exec npm run start