Skip to content

Commit

Permalink
Create backend-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jwpark1211 authored May 15, 2024
1 parent 899a8b1 commit 42a7bf1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/backend-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Backend CD
on:
push:
branches:
- "master"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: WAS 인스턴스 접속 및 애플리케이션 실행
uses: appleboy/[email protected]
with:
host: ${{ secrets.AWS_IP }}
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
sudo docker stop $(docker ps -a -q)
sudo docker rm $(docker ps -a -q)
sudo docker pull jeongwoon1849/bookitty
sudo docker run -d -p 8080:8080 --name new jeongwoon1849/bookitty

0 comments on commit 42a7bf1

Please sign in to comment.