Skip to content

Commit

Permalink
feat(workflows): github 변경 감지 시 aws로 전송하기 위한 action 코드 작성
Browse files Browse the repository at this point in the history
aws 인증 정보 설정 후 배포 스크립트 추가
  • Loading branch information
kaswhy authored Nov 13, 2024
1 parent f051bb2 commit 5d7fa18
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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}} \

0 comments on commit 5d7fa18

Please sign in to comment.