모임 전체 조회시 ID 누락 수정 #7
Workflow file for this run
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
name: cd-dev | |
on: | |
pull_request: | |
branches: | |
- develop-backend | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./backend | |
steps: | |
- name: 레포지토리 체크아웃 | |
uses: actions/checkout@v4 | |
- name: JDK 17을 설치 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: gradlew 권한 부여 | |
run: chmod +x ./gradlew | |
- name: Gradle 빌드 | |
run: ./gradlew clean build -x test | |
- name: DockerHub 로그인 | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: 도커 이미지 빌드 및 푸시 | |
run: | | |
docker build -t 2024mouda/cd:latest . | |
docker push 2024mouda/cd:latest |