ci: add specific_host input to Odoo 14 workflows

This commit is contained in:
maltayyar2 2026-01-15 01:55:28 +03:00
parent 64b3139cac
commit 7b3c410f33
1 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,11 @@ 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
@ -95,7 +100,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