From d0c7b1d9f2239c89f21524ab18970249d8c30a65 Mon Sep 17 00:00:00 2001 From: muhsroom1324 Date: Thu, 29 Aug 2024 13:38:21 +0900 Subject: [PATCH] feature: ci test --- .github/workflows/ci.yml | 16 ++++++++-------- appspec.yml => aws/appspec.yml | 0 buildspec.yml => aws/buildspec.yml | 0 kill_process.sh => aws/kill_process.sh | 0 start_process.sh => aws/start_process.sh | 0 5 files changed, 8 insertions(+), 8 deletions(-) rename appspec.yml => aws/appspec.yml (100%) rename buildspec.yml => aws/buildspec.yml (100%) rename kill_process.sh => aws/kill_process.sh (100%) rename start_process.sh => aws/start_process.sh (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d1075e8..4062e1d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,14 @@ jobs: docker build -t $ECR_REGISTRY/$ECR_REPOSITORY . docker push $ECR_REGISTRY/$ECR_REPOSITORY + - name: Zip deployment files + run: | + zip -r ${{ env.ZIP_FILE_NAME }} ./aws/ + + - name: Upload AppSpec and scripts to S3 + run: | + aws s3 cp ${{ env.ZIP_FILE_NAME }} s3://${{ secrets.S3_BUCKET }}/${{ env.ZIP_FILE_NAME }} + deploy: needs: build name: Trigger CD (CodeDeploy) @@ -77,14 +85,6 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ env.AWS_REGION }} - - name: Zip deployment files - run: | - zip -r ${{ env.ZIP_FILE_NAME }} appspec.yml start_process.sh kill_process.sh - - - name: Upload AppSpec and scripts to S3 - run: | - aws s3 cp ${{ env.ZIP_FILE_NAME }} s3://${{ secrets.S3_BUCKET }}/${{ env.ZIP_FILE_NAME }} - - name: Trigger CodeDeploy run: | aws deploy create-deployment \ diff --git a/appspec.yml b/aws/appspec.yml similarity index 100% rename from appspec.yml rename to aws/appspec.yml diff --git a/buildspec.yml b/aws/buildspec.yml similarity index 100% rename from buildspec.yml rename to aws/buildspec.yml diff --git a/kill_process.sh b/aws/kill_process.sh similarity index 100% rename from kill_process.sh rename to aws/kill_process.sh diff --git a/start_process.sh b/aws/start_process.sh similarity index 100% rename from start_process.sh rename to aws/start_process.sh