Skip to content

Commit

Permalink
🐛 fix: working-directory run 블록에서 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
choiseoji authored Sep 13, 2024
1 parent c7d855c commit 296c468
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Install JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: Grant execute permissions to Gradle Wrapper
run: chmod +x gradlew
working-directory: JejuDorang

- name: Build with Gradle
run: |
chmod +x ./JejuDorang/gradlew
./JejuDorang/gradlew clean build -x test
working-directory: JejuDorang
run: ./gradlew clean build -x test
working-directory: JejuDorang

- name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -34,8 +38,10 @@ jobs:

- name: Build Docker
run: docker build --platform linux/amd64 -t ${{ secrets.DOCKERHUB_USERNAME }}/live_server .

- name: Push Docker
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/live_server:latest


deploy:
needs: build
Expand Down

0 comments on commit 296c468

Please sign in to comment.