Skip to content

chore : yml 수정

chore : yml 수정 #2

Workflow file for this run

# 1 워크플로의 이름 지정
name: CI
# 2 워크플로가 시작될 조건 지정
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest # 3 실행 환경 지정
#4 실행스텝지정
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.TAEHOON_TOKEN }}
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
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/[email protected]
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00"
# 3 catchstudy 배포용 패키지 경로 저장
- name: catchstudy Set artifact
run: echo "artifact=$(ls ./catchstudy/build/libs | grep -v 'plain')" >> $GITHUB_ENV
# 4 빈스토크 배포
- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}
application_name: catch-study
environment_name: Catch-study-env
version_label: catch-study-${{steps.current-time.outputs.formattedTime}}
region: ap-northeast-2
deployment_package: ./catchstudy/build/libs/${{env.artifact}}
wait_for_environment_recovery: 500