feature update prepare_commands
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tqcq 2023-11-17 11:11:29 +08:00
parent 12db85d8b7
commit e5df51249b

View File

@ -2,12 +2,17 @@ kind: pipeline
type: docker
name: default
steps:
{{ $prepare_commands := .input.prepare_commands }}
{{ $default_build_types := .input.default_build_types }}
{{ range .input.builds }}
{{ $image_name := .image_name }}
- name: build {{ .image_name }}
image: dockcross/{{ .image_name }}
commands:
{{ range $prepare_commands }}
- {{ . }}
{{ end }}
{{ $build_types := $default_build_types }}
{{ if .build_types }}
{{ $build_types := .build_types }}