S2OJ/.drone.yml

124 lines
2.5 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: Build Docker Image (s2oj-db)
2022-10-05 23:28:28 +00:00
trigger:
branch:
- master
steps:
2022-09-19 12:25:22 +00:00
- name: tags
image: alpine
commands:
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
- 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
context: db
dockerfile: db/Dockerfile
username: baoshuo
password:
from_secret: GITMAC_SECRET
2022-10-05 23:28:28 +00:00
cache_from: git.m.ac/baoshuo/s2oj-db:latest
when:
event: push
branch: master
---
kind: pipeline
type: docker
name: Build Docker Image (s2oj-judger)
2022-10-05 23:28:28 +00:00
trigger:
branch:
- master
steps:
2022-09-19 12:25:22 +00:00
- name: tags
image: alpine
commands:
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
- 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
context: judger
dockerfile: judger/Dockerfile
username: baoshuo
password:
from_secret: GITMAC_SECRET
2022-10-05 23:28:28 +00:00
cache_from: git.m.ac/baoshuo/s2oj-judger:latest
when:
event: push
branch: master
2023-01-20 09:54:49 +00:00
---
kind: pipeline
type: docker
name: Build Docker Image (s2oj-remote-judger)
trigger:
branch:
- master
steps:
- name: tags
image: alpine
commands:
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
- name: docker
image: plugins/docker
settings:
registry: git.m.ac
repo: git.m.ac/baoshuo/s2oj-remote-judger
context: remote_judger
dockerfile: remote_judger/Dockerfile
username: baoshuo
password:
from_secret: GITMAC_SECRET
cache_from: git.m.ac/baoshuo/s2oj-remote-judger:latest
when:
event: push
branch: master
---
kind: pipeline
type: docker
name: Build Docker Image (s2oj-web)
2022-10-05 23:28:28 +00:00
trigger:
branch:
- master
steps:
2022-09-19 12:25:22 +00:00
- name: tags
image: alpine
commands:
2022-09-21 05:27:01 +00:00
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:7}" > .tags
- name: version
image: alpine
commands:
- sed -i "s/'s2oj-version' => 'dev'/'s2oj-version' => '${DRONE_COMMIT_SHA:0:7}'/g" web/app/.default-config.php
2022-09-19 12:25:22 +00:00
- 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
dockerfile: web/Dockerfile
username: baoshuo
password:
from_secret: GITMAC_SECRET
2022-10-05 23:28:28 +00:00
cache_from: git.m.ac/baoshuo/s2oj-web:latest
when:
event: push
branch: master