Skip to content

Commit

Permalink
chore: npm cache 테스트22 : 하나를 깔고 캐시를 해야 한다 ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Denia-park committed Feb 27, 2024
1 parent 4513090 commit aa0d7c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0

# # 캐시 테스트
# - name: Check node modules cache
# id: cache
# uses: actions/cache@v4
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
#
# - name: Build with Gradle Wrapper (skip npm install)
# if: steps.cache.outputs.cache-hit == 'true'
# run: ./gradlew build -x npmInstall
# working-directory: ./my-garden-be
#
# - name: Build with Gradle Wrapper (npm install)
# if: steps.cache.outputs.cache-hit != 'true'
# run: ./gradlew build
# working-directory: ./my-garden-be
# 캐시 테스트
- name: Check node modules cache
id: cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build with Gradle Wrapper (skip npm install)
if: steps.cache.outputs.cache-hit == 'true'
run: ./gradlew build -x npmInstall
working-directory: ./my-garden-be

- name: Build with Gradle Wrapper (npm install)
if: steps.cache.outputs.cache-hit != 'true'
run: ./gradlew build
working-directory: ./my-garden-be

# docker buildx 설치
- name: Set up docker buildx
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM openjdk:17-alpine
#ARG JAR_FILE=my-garden-be/build/libs/*.jar
#COPY ${JAR_FILE} app.jar
ARG JAR_FILE=my-garden-be/build/libs/*.jar
COPY tempText.txt tempText.txt
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar", "-Dspring.profiles.active=prod", "/app.jar"]

0 comments on commit aa0d7c5

Please sign in to comment.