Skip to content

Commit

Permalink
chore: aws-cicd yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Oct 28, 2024
1 parent 262942a commit 3877439
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/aws-cicd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
- name: Send Docker Compose
uses: appleboy/scp-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_DEV_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
port: 22
Expand All @@ -135,7 +135,7 @@ jobs:
- name: Extract Files on Server and Set Permissions
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_DEV_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
port: 22
Expand All @@ -149,7 +149,7 @@ jobs:
- name: Set Permissions on Transferred Files
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_DEV_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
port: 22
Expand All @@ -160,7 +160,7 @@ jobs:
- name: Deploy with Docker Compose
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_DEV_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
port: 22
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/aws-cicd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,19 @@ jobs:
- name: Send Docker Compose
uses: appleboy/scp-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
key: ${{ secrets.AWS_PROD_INSTANCE_PEM }}
port: 22
source: "layer-api.tar.gz"
target: "/home/ubuntu"

- name: Extract Files on Server and Set Permissions
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
key: ${{ secrets.AWS_PROD_INSTANCE_PEM }}
port: 22
script: |
cd /home/ubuntu
Expand All @@ -153,9 +153,9 @@ jobs:
- name: Set Permissions on Transferred Files
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
key: ${{ secrets.AWS_PROD_INSTANCE_PEM }}
port: 22
script: |
sudo chmod -R 755 /home/ubuntu/layer-api/infra/${{ env.DEPLOY_TARGET }}
Expand All @@ -164,9 +164,9 @@ jobs:
- name: Deploy with Docker Compose
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.AWS_INSTANCE_HOST }}
host: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
username: ubuntu
key: ${{ secrets.AWS_INSTANCE_PEM }}
key: ${{ secrets.AWS_PROD_INSTANCE_PEM }}
port: 22
script: |
sudo apt update
Expand Down
2 changes: 1 addition & 1 deletion layer-api/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spring:
config:
import: application-secret.properties
datasource:
url: ${AWS_PROD_DB_URL}
url: ${AWS_DEV_DB_URL}
username: ${AWS_PROD_DB_NAME}
password: ${AWS_PROD_DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down

0 comments on commit 3877439

Please sign in to comment.