Skip to content

fix: 빈스톡 deployment_package 경로 변경 #29

fix: 빈스톡 deployment_package 경로 변경

fix: 빈스톡 deployment_package 경로 변경 #29

Workflow file for this run

name: how-about-trip-webservice
on:
push:
branches:
- master
workflow_dispatch:
defaults:
run:
shell: bash
working-directory: ./backend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set up MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'trip'
mysql user: ${DB_USERNAME}
mysql password: ${{ secrets.MYSQL_PASSWORD }}
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash
- name: Build with Gradle
run: ./gradlew clean build
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: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/howAboutTrip.jar deploy/howAboutTrip-prod-ebextensions-1.jar
cp Procfile deploy/Procfile
cd deploy && zip -r howAboutTrip-prod-label-${{steps.current-time.outputs.formattedTime}}-${{github.sha}} .
- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: how-about-trip
environment_name: How-about-trip-env
version_label: howAboutTrip-prod-label-${{steps.current-time.outputs.formattedTime}}-${{github.sha}}
region: ap-northeast-2
deployment_package: howAboutTrip-prod-label-${{steps.current-time.outputs.formattedTime}}-${{github.sha}}.zip