Skip to content

Commit

Permalink
수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YoujeongChoi committed Mar 19, 2024
1 parent 961d07a commit dbe091b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ jobs:
echo "DB_DATABASE=${{ secrets.DB_DATABASE }}" >> $GITHUB_ENV
- name: Upload to S3
run: aws s3 cp --region ${{ secrets.AWS_REGION }} ./$GITHUB_SHA.zip ${{ secrets.AWS_REGION }}/$GITHUB_SHA.zip
run: aws s3 cp ./$GITHUB_SHA.zip s3://${{ secrets.S3_BUCKET_NAME }}/$GITHUB_SHA.zip --region ${{ secrets.AWS_BUCKET_REGION }}

- name: Code Deploy
run: aws deploy create-deployment --application-name $CODEDEPLOY_NAME --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name $CODEDEPLOY_GROUP --s3-location bucket=$S3_BUCKET_NAME,bundleType=zip,key=$GITHUB_SHA.zip

env:
NODE_ENV: development
AWS_REGION: ap-northeast-2
CODEDEPLOY_NAME: farmmate-server
CODEDEPLOY_GROUP: production

0 comments on commit dbe091b

Please sign in to comment.