Skip to content

Commit

Permalink
[cd] jib 캐싱 활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
dtd1614 committed Aug 5, 2024
1 parent f0b5acf commit df0d1a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,15 @@ jobs:
- name: Grant execute permission to Gradle Wrapper
run: chmod +x ./gradlew

- name: Cache Jib layers
uses: actions/cache@v3
with:
path: ./server-batch/build/jib-cache
key: ${{ runner.os }}-jib-${{ github.job }}-${{ hashFiles('**/build.gradle') }}
restore-keys: ${{ runner.os }}-jib-${{ github.job }}

- name: Build and push image to Amazon ECR
run: ./gradlew clean jib -x test
run: ./gradlew jib -x test

- name: Deploy to AWS ECS
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
Expand Down

0 comments on commit df0d1a7

Please sign in to comment.