Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HwangHarim authored Dec 13, 2023
1 parent 92f3bc3 commit 30e6975
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.GIT_TOKEN }}

- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
Expand Down Expand Up @@ -60,7 +66,7 @@ jobs:
script: |
sudo docker ps
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/community
sudo docker stop server
sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/community
sudo docker stop server || true
sudo docker run -d -p 8080:8080 --name server ${{ secrets.DOCKER_USERNAME }}/community
docker image prune -f

0 comments on commit 30e6975

Please sign in to comment.