From e1ea5115bd3468f6cfb2fe1497ca99bddbcd148a Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Fri, 28 Aug 2026 16:24:20 +0200 Subject: [PATCH] fix: deploy qt on add new service --- .gitea/workflows/add-new-service.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitea/workflows/add-new-service.yml b/.gitea/workflows/add-new-service.yml index 0dc15a4..3d18c25 100644 --- a/.gitea/workflows/add-new-service.yml +++ b/.gitea/workflows/add-new-service.yml @@ -31,6 +31,27 @@ jobs: SERVICE_NAME="${BRANCH#feature/add-service-}" echo "service_name_lower=$SERVICE_NAME" >> $GITHUB_OUTPUT + - name: Qt - deploy + env: + DEST_DIR: /sls/bd/hla/dev/qt + run: | + mkdir -p "${DEST_DIR}" + + rsync -avz --delete \ + --exclude='.nfs*' \ + --exclude='.git/' \ + --exclude='.venv/' \ + --exclude='__pycache__/' \ + --exclude='*.pyc' \ + --exclude='.pytest_cache/' \ + ./qt/* "${DEST_DIR}/" + + ### SUBSTITUTIONS + source "${{ github.workspace }}/.gitea/scripts/common.sh" + set_env_suffix "dev" + sed -i "s/{{ *agebd_env_suffix_upper* }}/${AGEBD_ENV_SUFFIX_UPPER}/g" "${DEST_DIR}/"* + sed -i "s/{{ *agebd_env_suffix_lower* }}/${AGEBD_ENV_SUFFIX_LOWER}/g" "${DEST_DIR}/"* + # The ioc steps read the deployed ioc files on /sls, so the service # has to be deployed before its ioc is installed. - name: Deploy and Restart Master Service