Skip to content

Commit

Permalink
Update github-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YounCheEun committed Jan 8, 2024
1 parent 929ca1e commit e9705d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
touch ./application.yml
echo "${{ secrets.YML_PROD }}" >> ./application.yml
shell: bash

- name: Set up permissions for Gradle
run: chmod +x ./gradlew

Expand All @@ -60,7 +60,7 @@ jobs:
## copy jar file
- name: Copy jar file
run: cp build/libs/*-0.0.1-SNAPSHOT.jar .

- name: List directory
run: ls -R

Expand Down Expand Up @@ -91,11 +91,11 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker image rm ${{ secrets.DOCKER_REPO }}
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_REPO }}
docker-compose up -d
docker image prune -f
## time
current-time:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ FROM openjdk:17-jdk
#EXPOSE 8080
ARG JAR_FILE=build/libs/*.jar
COPY ./*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]g
ENTRYPOINT ["java","-jar","/app.jar"]
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repositories {

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down

0 comments on commit e9705d5

Please sign in to comment.