Skip to content

Commit

Permalink
chore(POLABO-31): github actions 6차 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Jun 29, 2024
1 parent 9c2938d commit 71bab0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ jobs:

## gradle build
- name: Build with Gradle
run: ./gradlew clean build -x test
run: ./gradlew clean bootJar

- name: List build/libs directory
run: ls -la build/libs

## 이미지 태그에 시간 설정을 하기위해서 현재 시간을 가져옵니다.
- name: Get current time
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM openjdk:21
ARG JAR_FILE=./build/libs/*SNAPSHOT.jar

ARG JAR_FILE=build/libs/*SNAPSHOT.jar
ARG PASSWORD

COPY ${JAR_FILE} polabo.jar

ENV JASYPT_ENCRYPTOR_PASSWORD=${PASSWORD}
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} ${ENVIRONMENT_VALUE} -jar /polabo.jar.jar", "-Djasypt.encryptor.password=${JASYPT_ENCRYPTOR_PASSWORD}"]

ENTRYPOINT ["sh", "-c", "java -jar /polabo.jar -Djasypt.encryptor.password=${JASYPT_ENCRYPTOR_PASSWORD}"]

0 comments on commit 71bab0a

Please sign in to comment.