Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Merge branch 'backend' of https://github.com/hackersground-kr/hg-Five… #35

Merge branch 'backend' of https://github.com/hackersground-kr/hg-Five…

Merge branch 'backend' of https://github.com/hackersground-kr/hg-Five… #35

name: Build and Push Docker Image
on:
push:
branches:
- backend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: gradlew 실행 권한
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew bootjar
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Docker image
run: docker build -t anys34/five:latest .
- name: Push Docker image
run: docker push anys34/five:latest