Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YWHyuk authored Nov 28, 2024
1 parent 1374c12 commit e1e4d16
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,27 @@ name: Docker Build and Test
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

jobs:
docker-build:
runs-on: ubuntu-latest

steps:
# 1. 저장소 체크아웃
- name: Checkout repository
uses: actions/checkout@v3

# 2. Docker 빌드
- name: Build Docker image
run: |
docker build -t onxxim-test .
# 3. Docker 빌드 테스트 (빌드 성공 여부 확인)
- name: Test Docker image
run: |
docker run --rm onxxim-test echo "Docker build successful!"
# 4. (선택 사항) 캐시 설정
# Docker 이미지 캐싱으로 빌드 시간을 줄일 수 있음
- name: Cache Docker layers
uses: actions/cache@v3
with:
Expand Down

0 comments on commit e1e4d16

Please sign in to comment.