mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 16:48:43 +00:00
feat: add cache for docker image build
This commit is contained in:
parent
236ca9654d
commit
bcecbd8a19
15
.drone.yml
15
.drone.yml
@ -3,6 +3,10 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build Docker Image (s2oj-db)
|
name: Build Docker Image (s2oj-db)
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: tags
|
- name: tags
|
||||||
image: alpine
|
image: alpine
|
||||||
@ -19,6 +23,7 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
|
cache_from: git.m.ac/baoshuo/s2oj-db:latest
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
@ -28,6 +33,10 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build Docker Image (s2oj-judger)
|
name: Build Docker Image (s2oj-judger)
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: tags
|
- name: tags
|
||||||
image: alpine
|
image: alpine
|
||||||
@ -44,6 +53,7 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
|
cache_from: git.m.ac/baoshuo/s2oj-judger:latest
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
@ -53,6 +63,10 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build Docker Image (s2oj-web)
|
name: Build Docker Image (s2oj-web)
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: tags
|
- name: tags
|
||||||
image: alpine
|
image: alpine
|
||||||
@ -73,6 +87,7 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
|
cache_from: git.m.ac/baoshuo/s2oj-web:latest
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user