mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 12:58:42 +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
|
||||
name: Build Docker Image (s2oj-db)
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
@ -19,6 +23,7 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
cache_from: git.m.ac/baoshuo/s2oj-db:latest
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
@ -28,6 +33,10 @@ kind: pipeline
|
||||
type: docker
|
||||
name: Build Docker Image (s2oj-judger)
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
@ -44,6 +53,7 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
cache_from: git.m.ac/baoshuo/s2oj-judger:latest
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
@ -53,6 +63,10 @@ kind: pipeline
|
||||
type: docker
|
||||
name: Build Docker Image (s2oj-web)
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
@ -73,6 +87,7 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
cache_from: git.m.ac/baoshuo/s2oj-web:latest
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
|
Loading…
Reference in New Issue
Block a user