fix: skip app.json buildpacks for image-based deploys

When deploying via git:from-image, the source image may contain an
app.json with buildpacks entries that are not relevant. Check for
the source-image property and skip app.json buildpacks when set.
This commit is contained in:
Jose Diaz-Gonzalez
2026-04-18 20:29:05 -04:00
parent b0b11bcf26
commit 08596c9648

View File

@@ -28,6 +28,14 @@ func getBuildpacks(appName string) ([]string, error) {
return buildpacks, nil
}
results, _ := common.CallPlugnTrigger(common.PlugnTriggerInput{
Trigger: "git-get-property",
Args: []string{appName, "source-image"},
})
if results.StdoutContents() != "" {
return buildpacks, nil
}
appJSON, err := appjson.GetAppJSON(appName)
if err != nil {
return buildpacks, err