2022-09-19 08:21:16 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build Docker Image (s2oj-db)
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: git.m.ac
|
2022-09-19 08:27:08 +00:00
|
|
|
repo: git.m.ac/baoshuo/s2oj-db
|
2022-09-19 08:21:16 +00:00
|
|
|
use_cache: true
|
|
|
|
context: db
|
|
|
|
dockerfile: db/Dockerfile
|
|
|
|
username: baoshuo
|
|
|
|
password:
|
|
|
|
from_secret: GITMAC_SECRET
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- master
|
|
|
|
- "${DRONE_COMMIT_SHA:0:8}"
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build Docker Image (s2oj-judger)
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: git.m.ac
|
2022-09-19 08:27:08 +00:00
|
|
|
repo: git.m.ac/baoshuo/s2oj-judger
|
2022-09-19 08:21:16 +00:00
|
|
|
use_cache: true
|
|
|
|
context: judger
|
|
|
|
dockerfile: judger/Dockerfile
|
|
|
|
username: baoshuo
|
|
|
|
password:
|
|
|
|
from_secret: GITMAC_SECRET
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- master
|
|
|
|
- "${DRONE_COMMIT_SHA:0:8}"
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build Docker Image (s2oj-web)
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: git.m.ac
|
2022-09-19 08:27:08 +00:00
|
|
|
repo: git.m.ac/baoshuo/s2oj-web
|
2022-09-19 08:21:16 +00:00
|
|
|
use_cache: true
|
|
|
|
dockerfile: web/Dockerfile
|
|
|
|
username: baoshuo
|
|
|
|
password:
|
|
|
|
from_secret: GITMAC_SECRET
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- master
|
|
|
|
- "${DRONE_COMMIT_SHA:0:8}"
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: master
|