Skip to content

Commit

Permalink
Update Deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseohyun1228 authored Nov 7, 2024
1 parent 4bf882b commit c632fc0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ jobs:
working-directory: ./boomerang
run: ./gradlew build -x test

- name: Debug working directory
run: |
echo "Current directory: $(pwd)"
ls -l ./boomerang/scripts
- name: Convert line endings and grant execute permission for scripts
working-directory: ./boomerang/scripts
run: |
# Convert Windows line endings to Unix line endings
sed -i 's/\r$//' start_server.sh
sed -i 's/\r$//' ./boomerang/scripts/start_server.sh
# Grant execute permission
chmod +x start_server.sh
chmod +x ./boomerang/scripts/start_server.sh
- name: Make zip file including appspec.yml
run: |
Expand All @@ -68,6 +72,9 @@ jobs:
- name: Upload to S3
run: aws s3 cp application.zip s3://$S3_BUCKET_NAME/application.zip

- name: List objects in S3 bucket
run: aws s3 ls s3://$S3_BUCKET_NAME/ # S3 버킷의 객체 목록을 나열

- name: Deploy with CodeDeploy
run: |
aws deploy create-deployment \
Expand Down

0 comments on commit c632fc0

Please sign in to comment.