From df703588a65ebf4824c5416e033a0063c02462e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Sat, 9 Apr 2022 03:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E7.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 95 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 62 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index f4b0015..4bab5c7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,44 +1,72 @@ ---- -kind: pipeline -type: docker -name: apache +# --- +# kind: pipeline +# type: docker +# name: apache -clone: - depth: 1 +# clone: +# depth: 1 -steps: -# 8.1 - - name: build - pull: if-not-exists - image: plugins/docker - settings: - username: robot$library+drone - password: DhmbcQyu7I5uaUfWbzcedbDGB0gfhuFR - repo: stark.doylee.cn/library/flarum - cache_from: - - "stark.doylee.cn/library/flarum" - tags: - - ${DRONE_BUILD_NUMBER} - - 8.1-apache - - 8-apache - - apache - - latest - target: apache-latest - registry: stark.doylee.cn - mirror: https://p2t7g3ky.mirror.aliyuncs.com - when: - event: push +# steps: +# # 8.1 +# - name: build +# pull: if-not-exists +# image: plugins/docker +# settings: +# username: robot$library+drone +# password: DhmbcQyu7I5uaUfWbzcedbDGB0gfhuFR +# repo: stark.doylee.cn/library/flarum +# cache_from: +# - "stark.doylee.cn/library/flarum" +# tags: +# - ${DRONE_BUILD_NUMBER} +# - 8.1-apache +# - 8-apache +# - apache +# - latest +# target: apache-latest +# registry: stark.doylee.cn +# mirror: https://p2t7g3ky.mirror.aliyuncs.com +# when: +# event: push + +# --- +# kind: pipeline +# type: docker +# name: 7.3-apache + +# clone: +# depth: 1 + +# steps: +# # 7.3 +# - name: build +# pull: if-not-exists +# image: plugins/docker +# settings: +# username: robot$library+drone +# password: DhmbcQyu7I5uaUfWbzcedbDGB0gfhuFR +# repo: stark.doylee.cn/library/flarum +# cache_from: +# - "stark.doylee.cn/library/flarum:7.3-apache" +# tags: +# - ${DRONE_BUILD_NUMBER} +# - 7.3-apache +# target: apache-73 +# registry: stark.doylee.cn +# mirror: https://p2t7g3ky.mirror.aliyuncs.com +# when: +# event: push --- kind: pipeline type: docker -name: 7.3-apache +name: 7-apache clone: depth: 1 steps: -# 7.3 +# 7.4 - name: build pull: if-not-exists image: plugins/docker @@ -47,12 +75,13 @@ steps: password: DhmbcQyu7I5uaUfWbzcedbDGB0gfhuFR repo: stark.doylee.cn/library/flarum cache_from: - - "stark.doylee.cn/library/flarum:7.3-apache" + - "stark.doylee.cn/library/flarum:7-apache" tags: - ${DRONE_BUILD_NUMBER} - - 7.3-apache - target: apache-73 + - 7.4-apache + - 7-apache registry: stark.doylee.cn mirror: https://p2t7g3ky.mirror.aliyuncs.com + dockerfile: path/to/Dockerfile when: event: push \ No newline at end of file