We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7532dc commit d209765Copy full SHA for d209765
.github/workflows/ssh-test.yml
@@ -0,0 +1,23 @@
1
+name: SSH Test to EC2
2
+
3
+on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches:
7
+ - devops-1
8
+jobs:
9
+ ssh-test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
15
+ - name: SSH and create file with appleboy/ssh-action
16
+ uses: appleboy/[email protected]
17
+ with:
18
+ host: 54.221.139.4
19
+ username: ubuntu
20
+ key: ${{ secrets.DEV_SSH_KEY }}
21
+ script: |
22
+ echo 'Hello from GitHub Actions via appleboy!' > /tmp/github_actions_test.txt
23
+ cat /tmp/github_actions_test.txt
0 commit comments