Skip to content

issue/75 ๐Ÿ› Fix : accessToken ์žฌ๋ฐœ๊ธ‰ ๋ฒ„๊ทธ ์ˆ˜์ • #43

issue/75 ๐Ÿ› Fix : accessToken ์žฌ๋ฐœ๊ธ‰ ๋ฒ„๊ทธ ์ˆ˜์ •

issue/75 ๐Ÿ› Fix : accessToken ์žฌ๋ฐœ๊ธ‰ ๋ฒ„๊ทธ ์ˆ˜์ • #43

Workflow file for this run

name: Breifing Dev CI/CD
on:
pull_request:
types: [closed]
workflow_dispatch: # (2).์ˆ˜๋™ ์‹คํ–‰๋„ ๊ฐ€๋Šฅํ•˜๋„๋ก
jobs:
build:
runs-on: ubuntu-latest # (3).OSํ™˜๊ฒฝ
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop'
steps:
- name: Checkout
uses: actions/checkout@v2 # (4).์ฝ”๋“œ check out
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17 # (5).์ž๋ฐ” ์„ค์น˜
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash # (6).๊ถŒํ•œ ๋ถ€์—ฌ
- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash # (7).build ์‹œ์ž‘
- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00" # (8).build ์‹œ์ ์˜ ์‹œ๊ฐ„ํ™•๋ณด
- name: Show Current Time
run: echo "CurrentTime=$"
shell: bash # (9).ํ™•๋ณดํ•œ ์‹œ๊ฐ„ ๋ณด์—ฌ์ฃผ๊ธฐ
- 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_ACCESS_KEY }}
application_name: briefing-dev
environment_name: Briefing-dev-env
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-1
deployment_package: deploy/deploy.zip
wait_for_environment_recovery: 60