Skip to content

✨ Feat: 리뷰 필터링 로직에 리뷰 이미지 필드 추가 #9

✨ Feat: 리뷰 필터링 로직에 리뷰 이미지 필드 추가

✨ Feat: 리뷰 필터링 로직에 리뷰 이미지 필드 추가 #9

Workflow file for this run

name: UMC mini CI/CD
on:
pull_request:
types: [closed]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
steps:
- name: Checkout
uses: actions/checkout@v3 # 저장소 코드 체크아웃
- name: Set up JDK 17 # Java 개발 킷 설정
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00"
- name: Show Current Time
run: echo "CurrentTime=$"
shell : bash
- name: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cp Procfile deploy/Procfile
cp -r .ebextensions-dev deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .
- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v20
with:
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_KEY_ID }}
application_name: umc-miniProject
environment_name: Umc-Miniproject-env
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-1
deployment_package: deploy/deploy.zip
wait_for_environment_recovery: 60