Change entry
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user