-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
107 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: drwtStore-batch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
startDrwtNo: | ||
description: 시작회차 | ||
default: "" | ||
type: string | ||
endDrwtNo: | ||
description: 종료회차 | ||
default: "" | ||
type: string | ||
schedule: | ||
- cron: '0 22 * * SUN' # 매주 일요일 22시 | ||
|
||
jobs: | ||
drwtStore-batch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build Gradle | ||
run: ./gradlew clean --stacktrace --build-file=./batch/build.gradle.kts --exclude-task test build | ||
|
||
- name: Job Execute | ||
run: java -jar --Dspring.profiles.active=prod --job.name=lottoDrwtStoreJob startDrwtNo=$START_DRWTNO endDrwtNo=$END_DRWTNO ./build/libs/batch-0.0.1-SNAPSHOT.jar | ||
env: | ||
START_DRWTNO: ${{ inputs.startDrwtNo }} | ||
END_DRWTNO: ${{ inputs.endDrwtNo }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: number-batch | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
startDrwtNo: | ||
description: 시작회차 | ||
default: "" | ||
type: string | ||
endDrwtNo: | ||
description: 종료회차 | ||
default: "" | ||
type: string | ||
schedule: | ||
- cron: '0 21 * * SUN' # 매주 일요일 21시 | ||
|
||
jobs: | ||
number-batch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build Gradle | ||
run: ./gradlew clean --stacktrace --build-file=./batch/build.gradle.kts --exclude-task test build | ||
|
||
- name: Job Execute | ||
run: java -Dspring.profiles.active=prod -jar ./batch/build/libs/batch-0.0.1-SNAPSHOT.jar --spring.batch.job.names=lottoNumberJob --startDrwtNo=$START_DRWTNO --endDrwtNo=$END_DRWTNO | ||
env: | ||
START_DRWTNO: ${{ inputs.startDrwtNo }} | ||
END_DRWTNO: ${{ inputs.endDrwtNo }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: store-batch | ||
|
||
on: | ||
schedule: | ||
- cron: '0 21 1 */6 *' # 6개월마다 1일 21시 (1/1, 7/1) | ||
|
||
jobs: | ||
store-batch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 17 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build Gradle | ||
run: ./gradlew clean --stacktrace --build-file=./batch/build.gradle.kts --exclude-task test build | ||
|
||
- name: Job Execute | ||
run: java -jar --Dspring.profiles.active=prod --job.name=lottoStoreJob ./build/libs/batch-0.0.1-SNAPSHOT.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters