Skip to content

Commit

Permalink
github actions 도입 ..14 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-creative committed Nov 8, 2023
1 parent 7171e36 commit 23cbc80
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,26 @@ jobs:
run: chmod +x ./gradlew
- name: 프로젝트 빌드
run: ./gradlew clean build -x test

- name: AWS credential 설정
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ env.AWS_REGION }}
aws-access-key-id: ${{ secrets.CICD_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.CICD_SECRET_KEY }}

- name: S3에 업로드
run: aws deploy push --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --ignore-hidden-files --s3-location s3://$AWS_S3_BUCKET/cicdtest/$GITHUB_SHA.zip --source .
run:
aws deploy push
--application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }}
--ignore-hidden-files
--s3-location s3://$AWS_S3_BUCKET/cicdtest/$GITHUB_SHA.zip
--source .

- name: EC2에 배포
run: aws deploy create-deployment --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }} --s3-location bucket=$AWS_S3_BUCKET,key=cicdtest/$GITHUB_SHA.zip,bundleType=zip
run:
aws deploy create-deployment
--application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }}
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }}
--s3-location bucket=$AWS_S3_BUCKET,key=cicdtest/$GITHUB_SHA.zip,bundleType=zip
2 changes: 1 addition & 1 deletion src/main/resources/templates/member/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>
<body>
<h1>
🔑 로그인
🔑 로그인@@
</h1>
<p class="loginGuide">
최초 로그인 시에는 휴대폰번호 인증이 필요합니다.
Expand Down

0 comments on commit 23cbc80

Please sign in to comment.