Skip to content

feat: 유저 정보 상세 조회 API 구현 #34

feat: 유저 정보 상세 조회 API 구현

feat: 유저 정보 상세 조회 API 구현 #34

Workflow file for this run

name: CI/CD Pipeline
on:
push:
tags:
- 'v*.*.*' # v1.0.0, v1.2.3 형식의 태그만
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build -x test
- name: Run tests
run: ./gradlew test
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: app-jar
path: build/libs/*.jar
docker:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: app-jar
path: build/libs
- name: Create stt.json from secret
run: echo '${{ secrets.GOOGLE_STT_JSON }}' > stt.json
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract tag version
id: tag
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/hearday-spring:${{ steps.tag.outputs.VERSION }}
${{ secrets.DOCKER_USERNAME }}/hearday-spring:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo "Image pushed with tag ${{ steps.tag.outputs.VERSION }}"