From c322bdee75c6920eaa2a436227dcc267ad861279 Mon Sep 17 00:00:00 2001 From: Eugene Lee Date: Sat, 11 Jul 2020 05:00:39 +0900 Subject: [PATCH] #12 Add auto elasticbeanstalk deploy --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e230486..8fb33d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,3 +36,11 @@ jobs: DATABASE_USER: ${{ secrets.DATABASE_USER }} DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }} DATABASE_NAME: ${{ secrets.DATABASE_NAME }} + - name: Deploy to ElasticBeanstalk + uses: einaregilsson/beanstalk-deploy@v10 + with: + aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + application_name: mypetmily + environment_name: mypetmily-release + region: ap-northeast-2