From edd297f51254147386ad1f25d8f7c8467993e215 Mon Sep 17 00:00:00 2001 From: maltayyar2 Date: Thu, 15 Jan 2026 01:23:22 +0300 Subject: [PATCH] ci: add specific_host input for multi-server deployment --- .github/workflows/deploy-manager.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-manager.yml b/.github/workflows/deploy-manager.yml index d06129c..9fd46b1 100644 --- a/.github/workflows/deploy-manager.yml +++ b/.github/workflows/deploy-manager.yml @@ -18,12 +18,18 @@ on: - preprod - prod default: 'dev' + specific_host: + description: 'Specific Server IP (Optional)' + required: false + type: string + default: '' force_restart: description: 'Force Service Restart' required: true type: boolean default: true + jobs: deploy: runs-on: ubuntu-latest @@ -83,7 +89,7 @@ jobs: if: steps.context.outputs.ENV != '' uses: appleboy/ssh-action@v1.0.0 with: - host: ${{ secrets.HYDRA_HOST }} + host: ${{ inputs.specific_host != '' && inputs.specific_host || secrets.HYDRA_HOST }} username: ${{ secrets.HYDRA_USER }} key: ${{ secrets.HYDRA_SSH_KEY }} port: 22