Skip to content

Commit d209765

Browse files
committed
feat: initial GH workflow
1 parent e7532dc commit d209765

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ssh-test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)