scale #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scale | |
on: | |
workflow_dispatch: | |
inputs: | |
datanodeCount: | |
description: 'Number of desired datanodes' | |
required: true | |
default: 4 | |
type: number | |
jobs: | |
scale: | |
runs-on: ubuntu-latest | |
name: Scale | |
steps: | |
- name: executing remote ssh commands using ssh key | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
cd /usr/src/app/TurtleMQ | |
sudo bash scale.sh ${{ inputs.datanodeCount }} |