commit
e5e965b797
1 changed files with 8 additions and 2 deletions
|
@ -422,6 +422,10 @@ func (b *builder) Build() ([]*buildItem, error) {
|
||||||
environ[k] = v
|
environ[k] = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for k, v := range axis {
|
||||||
|
environ[k] = v
|
||||||
|
}
|
||||||
|
|
||||||
secrets := map[string]string{}
|
secrets := map[string]string{}
|
||||||
for _, sec := range b.Secs {
|
for _, sec := range b.Secs {
|
||||||
if !sec.MatchEvent(b.Curr.Event) {
|
if !sec.MatchEvent(b.Curr.Event) {
|
||||||
|
@ -439,9 +443,11 @@ func (b *builder) Build() ([]*buildItem, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
y := b.Yaml
|
y := b.Yaml
|
||||||
if s, err := envsubst.Eval(y, sub); err != nil {
|
s, err := envsubst.Eval(y, sub)
|
||||||
y = s
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
|
y = s
|
||||||
|
|
||||||
parsed, err := yaml.ParseString(y)
|
parsed, err := yaml.ParseString(y)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue