From 9304731ac9a1d201de7c4ee287c09a16041f82ac Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Fri, 17 Jul 2026 13:35:36 +0200 Subject: [PATCH] chore: remove unused deploy file --- .../workflows/deploy-and-restart-service.yml | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 .gitea/workflows/deploy-and-restart-service.yml diff --git a/.gitea/workflows/deploy-and-restart-service.yml b/.gitea/workflows/deploy-and-restart-service.yml deleted file mode 100644 index fa4a82f..0000000 --- a/.gitea/workflows/deploy-and-restart-service.yml +++ /dev/null @@ -1,67 +0,0 @@ -# name: Deploy and restart modified services -# # TODO: take care of .venv building when required (i.e when uv.lock changed) -# -# on: -# push: -# # TODO: if someone tags 'prod' to a (broken) feature branch -# # this still triggers (and deploys to prod). -# branches: -# - main -# tags: -# - 'prod' -# - 'v*' -# paths: -# - 'services/**' -# -# jobs: -# deploy: -# runs-on: hla-dev -# -# env: -# # commit tagged ? yes->prod : no->dev -# AGEBD_ENV: ${{ github.ref_type == 'tag' && 'prod' || 'dev' }} -# -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 -# with: -# fetch-depth: 0 # needed for git diff tracking -# -# # TODO: (when) do we need to restart the master service or reinstall/restart the master ioc? -# -# - name: Initialize Virtual Environment from cli/uv.lock -# run: | -# uv venv .venv -# uv sync --directory cli -# -# - name: Install Ansible Galaxy Collections -# run: | -# uv run ansible-galaxy collection install -r ansible/collections/requirements.yml -p ./ansible/installed-collections -# -# - name: Run Ansible Orchestrator -# working-directory: ansible -# run: | -# set -x -# -# # Disable pipefail temporarily or add an '|| true' fallback so grep doesn't kill the script -# set +e -# CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }}) -# set -e -# -# # 1. Parse changed directory names into space-separated string (e.g. "master other-service") -# CHANGED_SVC=$(echo "$CHANGED_FILES" | awk -F/ '$1=="services" {print $2}' | sort -u | xargs) -# -# echo "Detected changed services: '$CHANGED_SVC'" -# -# # Safely halt the execution if there is nothing to pass to Ansible -# if [ -z "$CHANGED_SVC" ]; then -# echo "No services changed in this commit range. Skipping deployment smoothly." -# exit 0 -# fi -# -# # 3. Fire the playbook passing variables down -# ansible-playbook playbooks/deploy-and-restart-modified-services.yml \ -# -i hosts.yml \ -# -e "changed_services_raw='$CHANGED_SVC'" \ -# -e "agebd_env=$AGEBD_ENV" \ -# -vvv