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 8, 2024
1 parent 4252042 commit db5b2b1
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,22 @@ jobs:
working-directory: ./boomerang
run: ./gradlew build -x test

- name: Convert Windows line endings to Unix line endings
run: |
# Convert Windows line endings to Unix line endings for all scripts in the 'scripts' directory
find ./scripts -type f -name "*.sh" -exec sed -i 's/\r$//' {} \;
- name: Make zip file including appspec.yml
run: |
# Make sure appspec.yml is included in the zip
# Ensure appspec.yml is included in the zip
cp appspec.yml ./boomerang/
cp -r ./boomerang/build/libs ./boomerang/ # libs 폴더 복사
cp -r ./scripts ./boomerang/ # scripts 폴더 복사
chmod +x ./boomerang/scripts/start_server.sh # 실행 권한 부여
cp -r ./boomerang/build/libs ./boomerang/ # Copy libs folder
cp -r ./scripts ./boomerang/ # Copy scripts folder
chmod +x ./boomerang/scripts/*.sh # Grant execute permissions to all .sh files
cd ./boomerang
zip -r ../application.zip .
cd ..
- name: Convert Windows line endings to Unix line endings
run: |
# Current working directory
echo "Current directory: $(pwd)"
# Convert Windows line endings to Unix line endings in the correct path
sed -i 's/\r$//' ./scripts/start_server.sh
# Grant execute permission
chmod +x ./scripts/start_server.sh
# Now run the script (optional)
./scripts/start_server.sh
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -77,7 +68,7 @@ jobs:
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 버킷의 객체 목록을 나열
run: aws s3 ls s3://$S3_BUCKET_NAME/ # List objects in the S3 bucket

- name: Deploy with CodeDeploy
run: |
Expand Down

0 comments on commit db5b2b1

Please sign in to comment.