Skip to content

Commit

Permalink
#3 fix: Generate deployment package 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yo0oni committed Jan 14, 2024
1 parent b5162c1 commit 82bc64e
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ jobs:
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
Expand All @@ -48,9 +40,15 @@ jobs:
utcOffset: "+09:00"

- name: Generate deployment package
run: zip -r deploy.zip . -x '*.git*'

- name: Deploy to EB
run: |
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cp Procfile deploy/Procfile
cp -r .ebextensions deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .
- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -59,4 +57,5 @@ jobs:
environment_name: How-about-trip-env
version_label: github-action-${{steps.current-time.outputs.formattedTime}}
region: ap-northeast-2
deployment_package: ./deploy.zip
deployment_package: deploy/deploy.zip

0 comments on commit 82bc64e

Please sign in to comment.