From 5d7fa18e411166d5910c424fba6f2f48b16428be Mon Sep 17 00:00:00 2001 From: Soyeon Kim <112332952+kaswhy@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:17:37 +0900 Subject: [PATCH] =?UTF-8?q?feat(workflows):=20github=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=20=EA=B0=90=EC=A7=80=20=EC=8B=9C=20aws=EB=A1=9C=20=EC=A0=84?= =?UTF-8?q?=EC=86=A1=ED=95=98=EA=B8=B0=20=EC=9C=84=ED=95=9C=20action=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aws 인증 정보 설정 후 배포 스크립트 추가 --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..844a65a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: deploy + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + trigger_codepipeline: + runs-on: ubuntu-latest + + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + # AWS 인증 정보 설정 + - name: AWS configure credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ${{ secrets.AWS_REGION }} + + - name: Create deployment + run: | + aws deploy create-deployment \ + --application-name ${{secrets.CODEDEPLOY_APP_NAME}} \ + --deployment-config-name CodeDeployDefault.OneAtATime \ + --deployment-group-name ${{secrets.CODEDEPLOY_DG_NAME}} \