Skip to content

Commit

Permalink
fix: dev & prod workflow 수정 (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunwoongH committed Apr 16, 2024
1 parent 064c566 commit 6a1112b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_DEV_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_DEV_KEY }}
port: ${{ secrets.EC2_PORT }}
source: "./scripts/deploy.sh"
target: "/home/ubuntu/"
Expand All @@ -53,7 +53,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_DEV_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_DEV_KEY }}
port: ${{ secrets.EC2_PORT }}
source: "./docker-compose.yml"
target: "/home/ubuntu/"
Expand All @@ -71,7 +71,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_DEV_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_DEV_KEY }}
script: |
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}
chmod 777 ./scripts/deploy.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_PROD_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_PROD_KEY }}
port: ${{ secrets.EC2_PORT }}
source: "./scripts/deploy.sh"
target: "/home/ubuntu/"
Expand All @@ -53,7 +53,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_PROD_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_PROD_KEY }}
port: ${{ secrets.EC2_PORT }}
source: "./docker-compose.yml"
target: "/home/ubuntu/"
Expand All @@ -71,7 +71,7 @@ jobs:
with:
username: ubuntu
host: ${{ secrets.EC2_PROD_HOST }}
key: ${{ secrets.EC2_KEY }}
key: ${{ secrets.EC2_PROD_KEY }}
script: |
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}
chmod 777 ./scripts/deploy.sh
Expand Down

0 comments on commit 6a1112b

Please sign in to comment.