Skip to content

Test : User Basic Image Test #8

Test : User Basic Image Test

Test : User Basic Image Test #8

Workflow file for this run

name: Deploy
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
#------------------- EC2 --------------------
- name: AWS EC2 Connection Test
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
password: ${{ secrets.EC2_PASSWORD }}
port: ${{ secrets.EC2_SSH_PORT }}
timeout: 60s
script: echo "Connection Test"
# AWS EC2 Server Connect & Docker 명령어 실행
- name: AWS EC2 Run Scripts
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
password: ${{ secrets.EC2_PASSWORD }}
port: ${{ secrets.EC2_SSH_PORT }}
timeout: 60s
script: |
cd /usr/share/nginx/html/client-web
sudo git pull origin main