Skip to content

Commit

Permalink
Create gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qlido authored Dec 7, 2023
1 parent 6a50136 commit 743c156
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Java CI with Gradle

# master 브랜치에 push, PR 이벤트 발생시 동작.
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

# Spring Boot 어플리케이션 Build (1)
- name: Spring Boot Build
run: ./gradlew clean build --exclude-task test

# Docker 이미지 Build (2)
- name: docker image build
run: docker build -t qlido/sinp .

# DockerHub Login (3)
- name: docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Docker Hub push (4)
- name: docker Hub push
run: docker push qlido/sinp

0 comments on commit 743c156

Please sign in to comment.