feat: add cache for docker image build

This commit is contained in:
Baoshuo Ren 2022-10-06 07:28:28 +08:00
parent 236ca9654d
commit bcecbd8a19
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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