Skip to content

feat: jenkins 연결하여 batch 구동 #2

feat: jenkins 연결하여 batch 구동

feat: jenkins 연결하여 batch 구동 #2

Workflow file for this run

name: Build Batch Server
on:
push:
branches: [ "feat/36-batch" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 17 ]
steps:
- name: Check Out The Repository
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'corretto'
- name: Gradle Build
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew :Batch:build --no-daemon
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./Batch
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_BATCH_REPO }}:latest