ci: add specific_host input to Odoo 14 workflows
This commit is contained in:
parent
70931f2a8c
commit
ad7a67060f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue