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 16a102d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 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 }}
key: ${{ secrets.AWS_PASSWORD }}
source: "./.env"
target: "/home/ubuntu"

Expand All @@ -51,9 +52,9 @@ jobs:
- name: Send docker-compose.yml
uses: appleboy/scp-action@master
with:
username: root
host: ${{ secrets.NCP_DEV_IP }}
password: ${{ secrets.NCP_PASSWORD }}
username: ec2-user
host: ${{ secrets.AWS_DEV_IP }}
key: ${{ secrets.AWS_PASSWORD }}
port: 22
source: "./.docker/docker-compose.yml"
target: "/home/ubuntu/"
Expand All @@ -62,9 +63,9 @@ jobs:
- name: Deploy to Dev
uses: appleboy/ssh-action@master
with:
username: root
host: ${{ secrets.NCP_DEV_IP }}
password: ${{ secrets.NCP_PASSWORD }}
username: ec2-user
host: ${{ secrets.AWS_DEV_IP }}
key: ${{ secrets.AWS_PASSWORD }}
script: |
sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu
cd /home/ubuntu
Expand Down

0 comments on commit 16a102d

Please sign in to comment.