From 82bc64ed99cb9fea978eab5b0be18df9b9203714 Mon Sep 17 00:00:00 2001 From: Jiyoon Kim Date: Sun, 14 Jan 2024 16:28:48 +0900 Subject: [PATCH] =?UTF-8?q?#3=20fix:=20Generate=20deployment=20package=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1b72e10d..466456c0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 }} @@ -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 \ No newline at end of file + deployment_package: deploy/deploy.zip + \ No newline at end of file