Skip to content

feat: increase the max length of judge log #130

feat: increase the max length of judge log

feat: increase the max length of judge log #130

Workflow file for this run

name: Build and push Docker images
on:
push:
branches:
- pascal-oj
workflow_dispatch: # add manually button
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Run Gradle
uses: gradle/gradle-build-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
arguments: |
build
--scan
- name: To disable the cache of sduoj-server packages
run: rm -rfv ~/.gradle/caches/modules*/**/cn.edu.sdu.qd.oj*/**
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: registry.cn-beijing.aliyuncs.com/pre-sduoj/sduoj-judger:pascal-oj
cache-from: type=gha
cache-to: type=gha,mode=max