debug logs
This commit is contained in:
@ -10,14 +10,16 @@ if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then
|
|||||||
mkdir /tmp/clone
|
mkdir /tmp/clone
|
||||||
|
|
||||||
# Clone the repository
|
# Clone the repository
|
||||||
|
echo "Cloning repository..."
|
||||||
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
|
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
|
# 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"
|
||||||
|
echo "Synchronizing files..."
|
||||||
rsync -av --filter='P /public/content/*' --exclude '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 'public/content/* --exclude 'package.json' --exclude 'package-lock.json' ' /tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
|
||||||
|
|
||||||
|
|
||||||
|
echo "Checking for changes in package files..."
|
||||||
# Determine if package.json or package-lock.json has changed
|
# Determine if package.json or package-lock.json has changed
|
||||||
PACKAGE_CHANGE=0
|
PACKAGE_CHANGE=0
|
||||||
if ! cmp -s /tmp/clone/package.json /app/package.json || ! cmp -s /tmp/clone/package-lock.json /app/package-lock.json; then
|
if ! cmp -s /tmp/clone/package.json /app/package.json || ! cmp -s /tmp/clone/package-lock.json /app/package-lock.json; then
|
||||||
|
Reference in New Issue
Block a user