Skip to content

Commit

Permalink
fix: function with skip build
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Aug 1, 2022
1 parent 84baced commit 9877cd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/app_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func (o *FunctionApp) Plan(ctx context.Context, pctx *config.PluginContext, r *r
ContentType: fields.String("application/zip"),
}

if o.Build.LocalArchiveHash == "" {
r.GetAppResource(o.App, "archive", o.Archive)
}

_, err = r.RegisterAppResource(o.App, "archive", o.Archive)
if err != nil {
return err
Expand Down

0 comments on commit 9877cd9

Please sign in to comment.