test: 공통 인증 부분, 카테고리 생성/조회 API, 사용자 생성 문제 CRUD, 사용자 생성 요약 CRUD에 대한 테스트 작성 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
pull_request: | |
branches: [dev] | |
types: [closed] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged | |
steps: | |
- name: 체크아웃 | |
uses: actions/checkout@v4 | |
- name: JDK 11 설치 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '11' | |
cache: 'gradle' | |
- name: Gradle에 실행 권한 부여 | |
run: chmod +x gradlew | |
- name: 빌드 | |
run: ./gradlew build -x test | |
- name: zip 파일 생성 | |
run: zip -r ./qtudy.zip . | |
shell: bash | |
- name: AWS credentials 설정 | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.STG_AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.STG_AWS_SECRET_KEY }} | |
aws-region: ap-northeast-2 | |
- name: S3에 zip 파일 업로드 | |
run: > | |
aws s3 cp | |
--region ap-northeast-2 | |
./qtudy.zip s3://${{ secrets.STG_AWS_S3_BUCKET_NAME }}/qtudy.zip | |
- name: Code Deploy 통해 배포 | |
run: > | |
aws deploy create-deployment | |
--application-name QtudyStageCodeDeploy | |
--deployment-group-name QtudyStageCodeDeploy-DepGrp | |
--file-exists-behavior OVERWRITE | |
--deployment-config-name CodeDeployDefault.AllAtOnce | |
--s3-location bucket=${{ secrets.STG_AWS_S3_BUCKET_NAME }},bundleType=zip,key=qtudy.zip | |
--region ap-northeast-2 | |