Skip to content

Commit

Permalink
Merge pull request #32 from Sopo2023/feat/#1
Browse files Browse the repository at this point in the history
Feat/#1
  • Loading branch information
GayeongKimm authored Jul 28, 2024
2 parents ad60762 + 03c4f2d commit b9baf4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
CI-CD:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Checkout
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
Expand All @@ -33,12 +33,6 @@ jobs:
docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/sopo_v2 .
docker push ${{ secrets.DOCKER_USERNAME }}/sopo_v2
- name: Upload JAR file
uses: actions/upload-artifact@v3
with:
name: my-jar
path: build/libs/SOPO_server_v2-0.0.1-SNAPSHOT-plain.jar

- name: Deploy to Production
uses: appleboy/ssh-action@master
id: deploy-prod
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
ARG JAR_FILE=build/libs/SOPO_server_v2-0.0.1-SNAPSHOT-plain.jar
FROM node:16-alpine as builder
ARG JAR_FILE=build/libs/sopo-2.0.0.jar
COPY ${JAR_FILE} /sopo.jar
ENV TZ=Asia/Seoul
ENTRYPOINT ["java","-jar","/sopo.jar","-Duser.timezone=Asia/Seoul"]
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ java {
}
}

jar {
archiveFileName.set('sopo-2.0.0.jar')
}

configurations {
compileOnly {
extendsFrom annotationProcessor
Expand Down

0 comments on commit b9baf4f

Please sign in to comment.