Skip to content

Commit

Permalink
NABI-257--chore : CD 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
BeommoKoo-dev committed Nov 17, 2023
1 parent 6b379a8 commit 6482008
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,29 @@ jobs:
run: ./gradlew build
shell: bash

- name: Make zip file
run: zip -r ./$GITHUB_SHA.zip .
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.SECRET_KEY }}
aws-region: ap-northeast-2

# script files 복사
- name: Copy script
run: cp ./scripts/*.sh ./deploy
# S3에 빌드 결과 업로드
- name: Upload to S3
run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip

# Deploy 실행
- name: Code Deploy To EC2 instance
run: aws deploy create-deployment
--application-name $CODE_DEPLOY_APP_NAME
--deployment-config-name CodeDeployDefault.AllAtOnce
--deployment-group-name $DEPLOYMENT_GROUP_NAME
--s3-location bucket=$BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip
# - name: Make zip file
# run: zip -r ./$GITHUB_SHA.zip .
# shell: bash
#
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.ACCESS_KEY }}
# aws-secret-access-key: ${{ secrets.SECRET_KEY }}
# aws-region: ap-northeast-2
#
# # script files 복사
# - name: Copy script
# run: cp ./scripts/*.sh ./deploy
#
# # S3에 빌드 결과 업로드
# - name: Upload to S3
# run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://$BUCKET_NAME/$PROJECT_NAME/$GITHUB_SHA.zip
#
# # Deploy 실행
# - name: Code Deploy To EC2 instance
# run: aws deploy create-deployment
# --application-name $CODE_DEPLOY_APP_NAME
# --deployment-config-name CodeDeployDefault.AllAtOnce
# --deployment-group-name $DEPLOYMENT_GROUP_NAME
# --s3-location bucket=$BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip

0 comments on commit 6482008

Please sign in to comment.