diff --git a/.ebextensions/00-set-timezone.config b/.ebextensions/00-set-timezone.config new file mode 100644 index 0000000..34deba9 --- /dev/null +++ b/.ebextensions/00-set-timezone.config @@ -0,0 +1,3 @@ +commands: + set-timezone: + command: ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 25be9fe..92b4357 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,8 +35,12 @@ jobs: format: YYYY-MM-DDTHH-mm-ss utcOffset: "+09:00" - - name: Set artifact - run: echo "artifact=$(ls ./build/libs)" >> $GITHUB_ENV + - name: Generate deployment package + run: | + mkdir -p deploy + cp build/libs/*.jar deploy/application.jar + cp -r .ebextensions deploy/.ebextensions + cd deploy && zip -r smunity.zip . - name: Beanstalk Deploy uses: einaregilsson/beanstalk-deploy@v20 @@ -45,6 +49,6 @@ jobs: aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} application_name: smunity environment_name: smunity-env - version_label: github-action-${{steps.current-time.outputs.formattedTime}} + version_label: github-action-${{ steps.current-time.outputs.formattedTime }} region: ap-northeast-2 - deployment_package: ./build/libs/${{env.artifact}} + deployment_package: deploy/smunity.zip