-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.83 KB
/
judge_micro_python.yml
File metadata and controls
48 lines (40 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Python
on:
schedule:
- cron: '0 16 1 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Python Images
run: |
cd docker/python
docker build --pull --no-cache --build-arg PYTHON_TAG=3.9-bookworm -t tsukisama9292/judge_micro:python-3.9 .
docker build --pull --no-cache --build-arg PYTHON_TAG=3.10-bookworm -t tsukisama9292/judge_micro:python-3.10 .
docker build --pull --no-cache --build-arg PYTHON_TAG=3.11-bookworm -t tsukisama9292/judge_micro:python-3.11 .
docker build --pull --no-cache --build-arg PYTHON_TAG=3.12-bookworm -t tsukisama9292/judge_micro:python-3.12 .
docker build --pull --no-cache --build-arg PYTHON_TAG=3.13-bookworm -t tsukisama9292/judge_micro:python-3.13 .
- name: CI Test
run: |
docker run --rm tsukisama9292/judge_micro:python-3.9 make test-ci
docker run --rm tsukisama9292/judge_micro:python-3.10 make test-ci
docker run --rm tsukisama9292/judge_micro:python-3.11 make test-ci
docker run --rm tsukisama9292/judge_micro:python-3.12 make test-ci
docker run --rm tsukisama9292/judge_micro:python-3.13 make test-ci
- name: Push the Docker image to Docker Hub
run: |
docker push tsukisama9292/judge_micro:python-3.9
docker push tsukisama9292/judge_micro:python-3.10
docker push tsukisama9292/judge_micro:python-3.11
docker push tsukisama9292/judge_micro:python-3.12
docker push tsukisama9292/judge_micro:python-3.13