feat: 매칭 시 PessimisticLock 실패 예외 처리 로직 추가 #182
This file contains hidden or 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: CD | |
| on: | |
| push: | |
| branches: ["develop-v2"] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Create .env file | |
| run: | | |
| touch .env | |
| echo "${{ secrets.ENV }}" > .env | |
| cat .env | |
| - name: Gradle Caching | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew bootjar | |
| - name: Make zip file | |
| run: | | |
| mkdir deploy | |
| cp ./appspec.yml ./deploy/ | |
| cp ./Dockerfile ./deploy/ | |
| cp ./docker-compose.yml ./deploy/ | |
| cp ./prometheus.yml ./deploy/ | |
| cp ./.env ./deploy/ | |
| cp ./scripts/*.sh ./deploy/ | |
| cp -r ./fluent-bit-config ./deploy/ | |
| cp ./build/libs/*.jar ./deploy/ | |
| zip -r -qq ./doomz-build.zip ./deploy | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: ap-northeast-2 | |
| - name: Upload to S3 | |
| run: | | |
| aws s3 cp \ | |
| --region ap-northeast-2 \ | |
| ./doomz-build.zip s3://doomz-deploy | |
| - name: Code Deploy | |
| run: > | |
| aws deploy create-deployment --application-name doomz-codedploy-app | |
| --deployment-config-name CodeDeployDefault.AllAtOnce | |
| --deployment-group-name doomz-codedeploy-group | |
| --s3-location bucket=doomz-deploy,bundleType=zip,key=doomz-build.zip |