Skip to content

Commit 3049f2b

Browse files
author
Aaron Schlesinger
committed
fix(build.go): adjust the push URL
to be the same thing that workflow tells slugrunner to download from
1 parent b9e59a6 commit 3049f2b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ func build(conf *Config, builderKey, gitSha string) error {
8787
tmpDir := os.TempDir()
8888

8989
tarURL := fmt.Sprintf("%s://%s:%s/git/home/%s/tar", storage.schema(), storage.host(), storage.port(), slugName)
90-
pushURL := fmt.Sprintf("%s://%s:%s/git/home/%s/push", storage.schema(), storage.host(), storage.port(), slugName)
90+
91+
// this is where workflow tells slugrunner to download the slug from, so we have to tell slugbuilder to upload it to here
92+
pushURL := fmt.Sprintf("%s://%s:%s/git/home/%s/push", storage.schema(), storage.host(), storage.port(), fmt.Sprintf("%s:git-%s", appName, gitSha))
9193

9294
// Ensure that the app config can be gotten from workflow. We don't do anything with this information
9395
appConf, err := getAppConfig(conf, builderKey, conf.Username, appName)

0 commit comments

Comments
 (0)