좋아요 알람 비동기 및 복합 인덱스 최적화 #44
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: CI/CD # 1 깃허브 액션 이름 변경 | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean build | |
- name: Get current time | |
uses: josStorer/get-current-time@v2.0.2 | |
id: current-time | |
with: | |
format: YYYY-MM-DDTHH-mm-ss | |
utcOffset: "+09:00" | |
- name: Set artifact | |
run: echo "artifact=$(ls ./build/libs)" >> $GITHUB_ENV | |
- name: Beanstalk Deploy | |
uses: einaregilsson/beanstalk-deploy@v20 | |
with: | |
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID}} | |
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID}} | |
application_name: UserPark | |
environment_name: UserPark-env | |
version_label: github-action-${{steps.current-time.outputs.formattedTime}} | |
region: ap-northeast-2 | |
deployment_package: ./build/libs/${{env.artifact}} | |
wait_for_environment_recovery: 180 |