Skip to content

Commit

Permalink
fix: checkout with 옵션, 버전업에 따른 설정 변경 내용 반영 #33
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Jul 18, 2024
1 parent 70b30a9 commit 920ff6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/be-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
working-directory: ./backend

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -51,7 +49,7 @@ jobs:

deploy:
needs: build
runs-on: [self-hosted, linux, ARM64] # Self hosted runner 사용
runs-on: [ self-hosted, linux, ARM64 ] # Self hosted runner 사용
steps:
- name: Pull docker image
run: sudo docker pull ${{ secrets.DOCKER_USERNAME }}/ddangkong-api-dev:latest
9 changes: 4 additions & 5 deletions .github/workflows/be-ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@ jobs:
working-directory: ./backend

steps:
- name: checkout
uses: actions/checkout@v4

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

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew clean build

0 comments on commit 920ff6d

Please sign in to comment.