We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeebbb2 commit 9cd41c0Copy full SHA for 9cd41c0
1 file changed
.github/workflows/install-nginx.yml
@@ -0,0 +1,26 @@
1
+name: Install NGINX on Amazon Linux
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ install-nginx:
8
+ runs-on: ubuntu-latest
9
10
+ steps:
11
+ - name: Checkout repository
12
+ uses: actions/checkout@v4
13
14
+ - name: Install NGINX on Amazon Linux via SSH
15
+ uses: appleboy/ssh-action@v1.0.3
16
+ with:
17
+ host: ${{ secrets.EC2_HOST }}
18
+ username: ec2-user
19
+ key: ${{ secrets.EC2_SSH_KEY }}
20
+ port: 22
21
+ script: |
22
+ sudo yum update -y
23
+ sudo amazon-linux-extras enable nginx1
24
+ sudo yum install -y nginx
25
+ sudo systemctl start nginx
26
+ sudo systemctl enable nginx
0 commit comments