mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 11:38:42 +00:00
feat: push docker image to git.m.ac registry
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
5dd5934e8c
commit
76f10aa0be
85
.drone.yml
Normal file
85
.drone.yml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Build Docker Image (s2oj-db)
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: git.m.ac
|
||||||
|
repo: baoshuo/s2oj-db
|
||||||
|
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
|
||||||
|
repo: baoshuo/s2oj-judger
|
||||||
|
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
|
||||||
|
repo: baoshuo/s2oj-web
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user