1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-01-17 17:45:03 +02:00

fix: missing matrix env.

This commit is contained in:
Bo-Yi Wu 2017-03-21 22:30:01 +08:00
parent f0cbe62d81
commit 316a6ea454

View File

@ -422,6 +422,10 @@ func (b *builder) Build() ([]*buildItem, error) {
environ[k] = v
}
for k, v := range axis {
environ[k] = v
}
secrets := map[string]string{}
for _, sec := range b.Secs {
if !sec.MatchEvent(b.Curr.Event) {
@ -439,9 +443,11 @@ func (b *builder) Build() ([]*buildItem, error) {
}
y := b.Yaml
if s, err := envsubst.Eval(y, sub); err != nil {
y = s
s, err := envsubst.Eval(y, sub)
if err != nil {
return nil, err
}
y = s
parsed, err := yaml.ParseString(y)
if err != nil {