From 0d681c513132e0898997862a7a1e8de57e9a185f Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:33:34 +0800 Subject: [PATCH] feature add after_commands --- drone/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drone/build.yaml b/drone/build.yaml index 87c39a3..ba62494 100644 --- a/drone/build.yaml +++ b/drone/build.yaml @@ -3,6 +3,8 @@ type: docker name: default steps: {{ $prepare_commands := .input.prepare_commands }} + {{ $before_commands := .input.before_commands }} + {{ $after_commands := .input.after_commands }} {{ $default_build_types := .input.default_build_types }} {{ range .input.builds }} {{ $image_name := .image_name }} @@ -21,6 +23,10 @@ steps: - cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}} - cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc` {{end}} + + {{ range $after_commands }} + - {{ . }} + {{ end }} {{ end }} - name: list all build dir