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