Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/cd_workflow_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- develop

jobs:
build:
Expand Down Expand Up @@ -71,15 +72,15 @@ jobs:

- name: S3에 jar 업로드(실행 파일)
run:
aws s3 cp ./build/libs/freebe-0.0.1-SNAPSHOT.jar s3://${{secrets.AWS_S3_CICD_BUCKET}}/cicdtest/freebe.jar --region ap-northeast-2
aws s3 cp ./build/libs/freebe-0.0.1-SNAPSHOT.jar s3://${{secrets.AWS_S3_CICD_BUCKET}}/prod/freebe.jar --region ap-northeast-2

- name: S3에 zip 업로드(전체 파일)
run:
aws s3 cp freebe.zip s3://${{secrets.AWS_S3_CICD_BUCKET}}/cicdtest/freebe.zip --region ap-northeast-2
aws s3 cp freebe.zip s3://${{secrets.AWS_S3_CICD_BUCKET}}/prod/freebe.zip --region ap-northeast-2

- name: Code Deploy 로 배포
run: >
aws deploy create-deployment --application-name ${{ secrets.AWS_CODE_DEPLOY_APPLICATION }}
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name ${{ secrets.AWS_CODE_DEPLOY_GROUP }}
--s3-location bucket=${{ secrets.AWS_S3_CICD_BUCKET }},bundleType=zip,key=cicdtest/freebe.zip
--s3-location bucket=${{ secrets.AWS_S3_CICD_BUCKET }},bundleType=zip,key=prod/freebe.zip