Skip to content

Commit

Permalink
⚡️: fix CI/CD 관련 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
orijoon98 committed Mar 2, 2024
1 parent 122b4eb commit 72ad1d9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/api-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches: [ develop ]
paths:
- .github/workflows/**
- plu-api/**
- plu-common/**
- plu-domain/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches: [ main ]
paths:
- .github/workflows/**
- plu-api/**
- plu-common/**
- plu-domain/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-pr-check-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches: [ develop ]
paths:
- .github/workflows/**
- plu-api/**
- plu-common/**
- plu-domain/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-pr-check-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches: [ main ]
paths:
- .github/workflows/**
- plu-api/**
- plu-common/**
- plu-domain/**
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/notification-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches: [ develop ]
paths:
- .github/workflows/**
- plu-notification/**
- plu-common/**
- plu-domain/**
Expand Down Expand Up @@ -64,16 +65,16 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_DEV }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY_DEV }}
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_DEV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY_DEV }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy.zip s3://$AWS_S3_BUCKET/notification-code-deploy.zip

- name: Code Deploy
run: aws deploy create-deployment
--application-name plu-codedeploy
--application-name plu-application
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name NOTIFICATION
--s3-location bucket=$AWS_S3_BUCKET_NAME,bundleType=zip,key=notification-code-deploy.zip
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy.zip
10 changes: 5 additions & 5 deletions .github/workflows/notification-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: notification-deploy-prod
# Controls when the workflow will run
on:
push:
branches: [ develop ]
branches: [ main ]
paths:
- plu-notification/**
- plu-common/**
Expand Down Expand Up @@ -60,16 +60,16 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_DEV }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY_DEV }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_DEV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY_DEV }}
aws-region: ap-northeast-2

- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./notification-code-deploy.zip s3://$AWS_S3_BUCKET/notification-code-deploy.zip

- name: Code Deploy
run: aws deploy create-deployment
--application-name plu-codedeploy
--application-name plu-application
--deployment-config-name CodeDeployDefault.OneAtATime
--deployment-group-name NOTIFICATION
--s3-location bucket=$AWS_S3_BUCKET_NAME,bundleType=zip,key=notification-code-deploy.zip
--s3-location bucket=$AWS_S3_BUCKET,bundleType=zip,key=notification-code-deploy.zip
1 change: 1 addition & 0 deletions .github/workflows/notification-pr-check-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
branches: [ develop ]
paths:
- .github/workflows/**
- plu-notification/**
- plu-common/**
- plu-domain/**
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/notification-pr-check-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches: [ main ]
paths:
- .github/workflows/**
- plu-notification/**
- plu-common/**
- plu-domain/**
Expand Down

0 comments on commit 72ad1d9

Please sign in to comment.