Change entry

This commit is contained in:
Tiemen van Olst
2025-09-08 15:33:39 +02:00
parent bac490acb3
commit 95dadf4ac4

View File

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