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 343316d commit 9441f44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
- name: Send env file
uses: appleboy/scp-action@master
with:
username: ec2-user
username: ubuntu
host: ${{ secrets.AWS_DEV_IP }}
key: ${{ secrets.AWS_PASSWORD }}
source: "./.env"
target: "/home/ubuntu"
target: "/home"

# 빌드
- name: Build with Gradle
Expand All @@ -57,7 +57,7 @@ jobs:
key: ${{ secrets.AWS_PASSWORD }}
port: 22
source: "./.docker/docker-compose.yml"
target: "/home/ubuntu/"
target: "/home"

# 도커 컴포즈 실행
- name: Deploy to Dev
Expand All @@ -67,8 +67,8 @@ jobs:
host: ${{ secrets.AWS_DEV_IP }}
key: ${{ secrets.AWS_PASSWORD }}
script: |
sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu
cd /home/ubuntu
sudo cp /home/.docker/docker-compose.yml /home
cd /home
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
docker-compose up -d
docker image prune -f

0 comments on commit 9441f44

Please sign in to comment.