From f051bb2f5507c51fd2d8588561563e00f6af7d68 Mon Sep 17 00:00:00 2001 From: Lunawood Date: Wed, 13 Nov 2024 20:39:53 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20README=ED=8C=8C=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95,=20Docker=ED=8C=8C=EC=9D=BC=20=EC=8B=A4=ED=96=89=20?= =?UTF-8?q?=EB=B0=A9=EB=B2=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5036fd5..c0896da 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ # Server -Server Code by Spring Boot, Docker +Spring Boot, Docker 기반 서버 코드. + +# 로컬에서 실행했을 때 +### 이미지 생성 +docker-compose up -d +### 이미지 리스트 확인 +docker images +### 도커 컨테이너 확인 +docker ps +### 도커 Java Log 확인 +docker logs -f [server hash number] + 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 2/2] =?UTF-8?q?feat(workflows):=20github=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EA=B0=90=EC=A7=80=20=EC=8B=9C=20aws=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=84=EC=86=A1=ED=95=98=EA=B8=B0=20=EC=9C=84=ED=95=9C=20act?= =?UTF-8?q?ion=20=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}} \