Skip to content

Commit 0b130d8

Browse files
authored
fix: cd.yml에서 build 경로 및 zip 위치 수정
1 parent 5cd0e31 commit 0b130d8

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/cd.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ jobs:
3232
distribution: 'temurin'
3333

3434
- name: Grant execute permission for gradlew
35-
run: chmod +x ./gradlew
35+
run: chmod +x ./FixLog_Server/gradlew
3636

3737
- name: Build with Gradle
38-
run: ./gradlew clean build -x test
38+
run: |
39+
cd FixLog_Server
40+
./gradlew clean build -x test
3941
4042
- name: Configure AWS credentials
4143
uses: aws-actions/configure-aws-credentials@v4
@@ -46,19 +48,16 @@ jobs:
4648

4749
- name: Create .env file from GitHub secrets
4850
run: |
51+
cd FixLog_Server
4952
echo "mysql_url=${{ secrets.mysql_url }}" >> .env
5053
echo "mysql_username=${{ secrets.mysql_username }}" >> .env
5154
echo "mysql_password=${{ secrets.mysql_password }}" >> .env
5255
echo "jwt_key=${{ secrets.jwt_key }}" >> .env
5356
54-
- name: Move appspec.yml to root if necessary
55-
run: |
56-
if [ -f ./FixLog_Server/appspec.yml ]; then
57-
mv ./FixLog_Server/appspec.yml .
58-
fi
59-
6057
- name: Zip deploy package
61-
run: zip -r ${{ github.sha }}.zip . -x ".git/*"
58+
run: |
59+
cd FixLog_Server
60+
zip -r ../${{ github.sha }}.zip . -x ".git/*"
6261
6362
- name: Upload to S3
6463
run: |

0 commit comments

Comments
 (0)