Skip to content

Commit

Permalink
Merge pull request #131 from UMC-WOWMARKET/github/github-action
Browse files Browse the repository at this point in the history
Github Actions
  • Loading branch information
minji1289 authored Nov 2, 2023
2 parents 53efe14 + 2cc9246 commit 8af6e09
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: WOWMKT server CI/CD

on:
push:
branches: [ main ]

jobs:
SSH:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: ssh to ec2
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
script: |
cd /home/ec2-user/apps/step1
sh deploy.sh

0 comments on commit 8af6e09

Please sign in to comment.