Skip to content

Commit

Permalink
feat: dev 서버를 aws로 이관한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Sep 22, 2024
1 parent 0a6fd2c commit 578f4af
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- dev
- feat/**

# 권한 설정
permissions:
Expand Down Expand Up @@ -31,8 +32,8 @@ jobs:
uses: appleboy/scp-action@master
with:
username: root
host: ${{ secrets.NCP_DEV_IP }}
password: ${{ secrets.NCP_PASSWORD }}
host: ${{ secrets.AWS_DEV_IP }}
password: ${{ secrets.AWS_PASSWORD }}
source: "./.env"
target: "/home/ubuntu"

Expand All @@ -52,8 +53,8 @@ jobs:
uses: appleboy/scp-action@master
with:
username: root
host: ${{ secrets.NCP_DEV_IP }}
password: ${{ secrets.NCP_PASSWORD }}
host: ${{ secrets.AWS_DEV_IP }}
password: ${{ secrets.AWS_PASSWORD }}
port: 22
source: "./.docker/docker-compose.yml"
target: "/home/ubuntu/"
Expand All @@ -63,8 +64,8 @@ jobs:
uses: appleboy/ssh-action@master
with:
username: root
host: ${{ secrets.NCP_DEV_IP }}
password: ${{ secrets.NCP_PASSWORD }}
host: ${{ secrets.AWS_DEV_IP }}
password: ${{ secrets.AWS_PASSWORD }}
script: |
sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu
cd /home/ubuntu
Expand Down

0 comments on commit 578f4af

Please sign in to comment.