Skip to content

Commit

Permalink
bugfix : 기존 파일로 복구
Browse files Browse the repository at this point in the history
기존 파일로 복구
  • Loading branch information
InJun2 authored Oct 30, 2024
1 parent 3eff925 commit 4dd7e90
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.GIT_TOKEN }}

- name: Clean up temporary files to free space
run: find /tmp -writable -type f -delete
- name: Update submodules to latest commit on main branch
run: git submodule update --remote

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

# gradle caching - 빌드 시간 향상
- name: Cache Gradle packages
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -58,6 +66,6 @@ jobs:
sudo docker ps
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/url-shortener
sudo docker stop server || true
sudo docker rm server || true
sudo docker rm server || true # 중복된 이름 문제 해결
sudo docker run -d -p 8080:8080 --name server ${{ secrets.DOCKER_USERNAME }}/url-shortener
sudo docker image prune -f

0 comments on commit 4dd7e90

Please sign in to comment.