Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,38 @@ on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'
- '.*/**/*.md'
- 'CODEOWNERS'
push:
branches:
- main
paths-ignore:
- '**/*.md'
- '.*/**/*.md'
- 'CODEOWNERS'

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build & Run Server
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
context: .
push: false
tags: waffle-judge
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/waffle-judge.tar
Comment on lines +25 to +35
Copy link
Collaborator Author

@minkyu97 minkyu97 Jul 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

별도 PR로 올릴까 하다가.. ci 개선이라는 명목으로 퉁쳐서 도커 공식문서에 있는 깃헙 액션 프리셋을 활용하도록 변경했습니다.
당장은 캐시가 없고 앞뒤 준비과정이 있어서 조금 더 느려진 감이 있는데 캐시가 활용되면 더 빨라질 거예요

- name: Run Server
run: |
docker build -t waffle-judge .
docker load -i /tmp/waffle-judge.tar
docker run -d -p 8080:8080 waffle-judge
- name: Install Test Cli
run: |
Expand Down