From bcecbd8a19d75c31c759a7696a462d5ef8d4b071 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 6 Oct 2022 07:28:28 +0800 Subject: [PATCH] feat: add cache for docker image build --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index b4356d4..a51b535 100644 --- a/.drone.yml +++ b/.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