another try

This commit is contained in:
Dobromir Popov
2024-07-07 01:39:29 +03:00
parent 47310785aa
commit d77b4b4bfb

View File

@ -13,7 +13,9 @@ if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then
git clone -b ${GIT_BRANCH:-main} --depth 1 https://$GIT_USERNAME:${GIT_PASSWORD//@/%40}@git.d-popov.com/popov/mwitnessing.git /tmp/clone || exit 1
# Synchronize all files except package.json, package-lock.json, and the contents of /public/content
rsync -av --filter='P /public/content/' --exclude 'package.json' --exclude 'package-lock.json' /tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
# rsync -av --filter='P /public/content/' --exclude 'package.json' --exclude 'package-lock.json' /tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
rsync -av --delete --exclude 'package.json' --exclude 'package-lock.json' --exclude 'public/content/*' /tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
# Determine if package.json or package-lock.json has changed