Skip to content

Commit

Permalink
Merge github.com:syzoj/judge-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed May 24, 2022
2 parents 1a247ef + c6e0531 commit 521d2d2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 5 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Push

on:
push:
branches:
- master

jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- name: with rootfs
image-name: menci/syzoj-judge
dockerfile: Dockerfile
- name: without rootfs
image-name: menci/syzoj-judge-norootfs
dockerfile: Dockerfile.NOROOTFS
name: Build and Push (${{ matrix.target.name }})
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate Tag List
run: |
echo "TAGS<<EOF" >> $GITHUB_ENV
HASH_SHORT="$(git rev-parse --short HEAD)"
echo $IMAGE_NAME:$HASH_SHORT >> $GITHUB_ENV
echo $IMAGE_NAME:latest >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
env:
IMAGE_NAME: ${{ matrix.target.image-name }}
- name: Build and Push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64
push: true
tags: ${{ env.TAGS }}
file: ${{ matrix.target.dockerfile }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"command-line-args": "^4.0.7",
"cors": "^2.8.4",
"crypto-js": "^3.1.9-1",
"decompress": "^4.2.0",
"decompress": "^4.2.1",
"express": "^4.15.4",
"fs-extra": "^3.0.1",
"get-folder-size": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,10 @@ decompress-unzip@^4.0.1:
pify "^2.3.0"
yauzl "^2.4.2"

decompress@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.0.tgz#7aedd85427e5a92dacfe55674a7c505e96d01f9d"
integrity sha1-eu3YVCflqS2s/lVnSnxQXpbQH50=
decompress@^4.2.1:
version "4.2.1"
resolved "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz#007f55cc6a62c055afa37c07eb6a4ee1b773f118"
integrity sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==
dependencies:
decompress-tar "^4.0.0"
decompress-tarbz2 "^4.0.0"
Expand Down

0 comments on commit 521d2d2

Please sign in to comment.