Skip to content

Commit

Permalink
[settings] DOCKER-CI-CD.yml 파일 수정 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkonu committed Jun 27, 2024
1 parent 47e665a commit f5f162a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/DOCKER-CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,22 @@ jobs:
- name: 체크아웃
uses: actions/checkout@v3

- name: ec2 서버에 deploy.sh, docker-compose.yml 전송
- name: ec2 서버에 deploy.sh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
source: |
./scripts/deploy.sh
./docker-compose.yml
source: ./scripts/deploy.sh
target: /home/ubuntu/

- name: ec2 서버에 docker-compose.yml 전송
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
source: ./docker-compose.yml
target: /home/ubuntu/

- name: docker image 풀 및 deploy.sh 통해 블루-그린 배포 진행
Expand Down

0 comments on commit f5f162a

Please sign in to comment.