diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml new file mode 100644 index 0000000..59b377f --- /dev/null +++ b/.github/workflows/fedora.yml @@ -0,0 +1,15 @@ +name: Remote SSH Command +on: [push] +jobs: + build: + name: Build + runs-on: selft-hosted + steps: + - name: Execute remote SSH commands using password + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: linuxserver.io + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aa01707..3caa8f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: [push] jobs: default-user-name-password: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout code uses: actions/checkout@v4 @@ -67,7 +67,7 @@ jobs: cat /tmp/test/hello.txt check-ssh-key: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/ssh-200.yml b/.github/workflows/ssh-200.yml new file mode 100644 index 0000000..28e0c3e --- /dev/null +++ b/.github/workflows/ssh-200.yml @@ -0,0 +1,8 @@ +- name: executing remote ssh commands using password + uses: appleboy/ssh-action@v1.2.0 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami