From 22f913e8ecf6dcc3335b43a673a04fd9ba658b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B2=BD=EB=A1=9D?= Date: Sun, 13 Aug 2023 15:38:35 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20github=20action=20=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 980e901..d09889b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,6 +35,12 @@ jobs: # run: ./gradlew bootJar --build-cache -Dorg.gradle.jvmargs=-Xmx4g run: ./gradlew bootJar --build-cache -Dorg.gradle.jvmargs=-Xmx4g + - name: Cache PhysicalTheraphy build directory + uses: actions/cache@v3 + with: + path: ./ + key: ${{ runner.os }}-physicaltheraphy-build-cache-${{ steps.short-sha.outputs.sha }} + deploy: name: Deploy runs-on: ubuntu-latest @@ -66,6 +72,12 @@ jobs: id: login-ecr uses: aws-actions/amazon-ecr-login@v1 + - name: Restore Gradle cache directory + uses: actions/cache@v3 + with: + path: ./ + key: ${{ runner.os }}-physicaltheraphy-build-cache-${{ steps.short-sha.outputs.sha }} + - name: Build, tag, and push image to Amazon ECR id: build-image env: