Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-

- name: SonarCloud νŒ¨ν‚€μ§€ 캐싱
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: λΉŒλ“œ κΆŒν•œ λΆ€μ—¬
run: chmod +x ./gradlew
shell: bash
Expand Down Expand Up @@ -72,9 +79,20 @@ jobs:
title: updated_title,
state: 'closed'
})


- name: 도컀 ν—ˆλΈŒ 둜그인
run:
echo "${{ secrets.DOCKER_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: 도컀 λΉŒλ“œλ° Push
run: |
docker build -t 7zrv/somemore:${GITHUB_SHA::7} -t 7zrv/somemore:latest .
docker push 7zrv/somemore:${GITHUB_SHA::7}
docker push 7zrv/somemore:latest
Comment on lines +91 to +92
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

버전 κ΄€λ¦¬μ˜ 쒋은 μ˜ˆμ‹œ κ°™μŠ΅λ‹ˆλ‹€



- name: Build and analyze
- name: SonarCloud λΉŒλ“œλ° 뢄석
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM openjdk:21-jdk

MAINTAINER seojin Yoon <[email protected]>

LABEL maintainer="Seojin Yoon <[email protected]>" \
description="somemore API server Docker Image" \
version="1.0"

COPY build/libs/*SNAPSHOT.jar app.jar

ENTRYPOINT ["java", "-jar", "/app.jar"]
Loading