use rsync rather than copy
This commit is contained in:
@@ -15,8 +15,17 @@ SYSTEMD_UNIT_FILE_PATH=${SERVICE_DIR}/systemd/${SYSTEMD_UNIT_NAME}
|
||||
|
||||
# TODO: see https://gitea.psi.ch/sls/hla_framework_bd/issues/50
|
||||
# rm -rf "${SERVICE_DIR}"
|
||||
mkdir -p ${SERVICE_DIR}
|
||||
cp -r ./services/${SERVICE_NAME_LOWER}/current/* ${SERVICE_DIR}/
|
||||
# mkdir -p ${SERVICE_DIR}
|
||||
# cp -r ./services/${SERVICE_NAME_LOWER}/current/* ${SERVICE_DIR}/
|
||||
|
||||
rsync -avz --delete \
|
||||
--exclude='.nfs*' \
|
||||
--exclude='.git/' \
|
||||
--exclude='.venv/' \
|
||||
--exclude='__pycache__/' \
|
||||
--exclude='*.pyc' \
|
||||
--exclude='.pytest_cache/' \
|
||||
"./services/${SERVICE_NAME_LOWER}/current/*" "${SERVICE_DIR}/"
|
||||
|
||||
|
||||
if [ -f "${SYSTEMD_UNIT_FILE_PATH}" ]; then
|
||||
|
||||
@@ -67,8 +67,18 @@ jobs:
|
||||
run: |
|
||||
# TODO: see https://gitea.psi.ch/sls/hla_framework_bd/issues/50
|
||||
# rm -rf "${DEST_DIR}"
|
||||
mkdir -p "${DEST_DIR}"
|
||||
cp -r ./bin/* "${DEST_DIR}/"
|
||||
# mkdir -p "${DEST_DIR}"
|
||||
# cp -r ./bin/* "${DEST_DIR}/"
|
||||
|
||||
rsync -avz --delete \
|
||||
--exclude='.nfs' \
|
||||
--exclude='.git/' \
|
||||
--exclude='.venv/' \
|
||||
--exclude='__pycache__/' \
|
||||
--exclude='*.pyc' \
|
||||
--exclude='.pytest_cache/' \
|
||||
./bin/* "${DEST_DIR}/"
|
||||
|
||||
|
||||
- name: Agebd - deploy
|
||||
if: steps.filter.outputs.agebd == 'true'
|
||||
@@ -77,8 +87,17 @@ jobs:
|
||||
run: |
|
||||
# TODO: see https://gitea.psi.ch/sls/hla_framework_bd/issues/50
|
||||
# rm -rf "${DEST_DIR}"
|
||||
mkdir -p "${DEST_DIR}"
|
||||
cp -r ./packages/agebd/* "${DEST_DIR}/"
|
||||
# mkdir -p "${DEST_DIR}"
|
||||
# cp -r ./packages/agebd/* "${DEST_DIR}/"
|
||||
|
||||
rsync -avz --delete \
|
||||
--exclude='.nfs' \
|
||||
--exclude='.git/' \
|
||||
--exclude='.venv/' \
|
||||
--exclude='__pycache__/' \
|
||||
--exclude='*.pyc' \
|
||||
--exclude='.pytest_cache/' \
|
||||
./packages/agebd/* "${DEST_DIR}/"
|
||||
|
||||
- name: Qt - deploy
|
||||
if: steps.filter.outputs.qt == 'true'
|
||||
@@ -87,8 +106,17 @@ jobs:
|
||||
run: |
|
||||
# TODO: see https://gitea.psi.ch/sls/hla_framework_bd/issues/50
|
||||
# rm -rf "${DEST_DIR}"
|
||||
mkdir -p "${DEST_DIR}"
|
||||
cp -r ./qt/* "${DEST_DIR}/"
|
||||
# mkdir -p "${DEST_DIR}"
|
||||
# cp -r ./qt/* "${DEST_DIR}/"
|
||||
|
||||
rsync -avz --delete \
|
||||
--exclude='.nfs' \
|
||||
--exclude='.git/' \
|
||||
--exclude='.venv/' \
|
||||
--exclude='__pycache__/' \
|
||||
--exclude='*.pyc' \
|
||||
--exclude='.pytest_cache/' \
|
||||
./qt/* "${DEST_DIR}/"
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Services Detection, Testing, and Deployment
|
||||
|
||||
Reference in New Issue
Block a user