|
|
@@ -950,22 +950,22 @@ func (app *App) HandleUpgradeRelease(w http.ResponseWriter, r *http.Request) {
|
|
|
repoSplit := strings.Split(gitAction.GitRepo, "/")
|
|
|
|
|
|
gaRunner := &actions.GithubActions{
|
|
|
- ServerURL: app.ServerConf.ServerURL,
|
|
|
- GitIntegration: gr,
|
|
|
- GithubInstallationID: gitAction.GitRepoID,
|
|
|
- GithubAppID: app.GithubAppConf.AppID,
|
|
|
- GitRepoName: repoSplit[1],
|
|
|
- GitRepoOwner: repoSplit[0],
|
|
|
- Repo: *app.Repo,
|
|
|
- GithubConf: app.GithubProjectConf,
|
|
|
- WebhookToken: release.WebhookToken,
|
|
|
- ProjectID: uint(projID),
|
|
|
- ReleaseName: name,
|
|
|
- GitBranch: gitAction.GitBranch,
|
|
|
- DockerFilePath: gitAction.DockerfilePath,
|
|
|
- FolderPath: gitAction.FolderPath,
|
|
|
- ImageRepoURL: gitAction.ImageRepoURI,
|
|
|
- BuildEnv: cEnv.Container.Env.Normal,
|
|
|
+ ServerURL: app.ServerConf.ServerURL,
|
|
|
+ GithubOAuthIntegration: gr,
|
|
|
+ GithubInstallationID: gitAction.GitRepoID,
|
|
|
+ GithubAppID: app.GithubAppConf.AppID,
|
|
|
+ GitRepoName: repoSplit[1],
|
|
|
+ GitRepoOwner: repoSplit[0],
|
|
|
+ Repo: *app.Repo,
|
|
|
+ GithubConf: app.GithubProjectConf,
|
|
|
+ WebhookToken: release.WebhookToken,
|
|
|
+ ProjectID: uint(projID),
|
|
|
+ ReleaseName: name,
|
|
|
+ GitBranch: gitAction.GitBranch,
|
|
|
+ DockerFilePath: gitAction.DockerfilePath,
|
|
|
+ FolderPath: gitAction.FolderPath,
|
|
|
+ ImageRepoURL: gitAction.ImageRepoURI,
|
|
|
+ BuildEnv: cEnv.Container.Env.Normal,
|
|
|
}
|
|
|
|
|
|
err = gaRunner.CreateEnvSecret()
|
|
|
@@ -1345,22 +1345,22 @@ func (app *App) HandleRollbackRelease(w http.ResponseWriter, r *http.Request) {
|
|
|
}
|
|
|
|
|
|
gaRunner := &actions.GithubActions{
|
|
|
- ServerURL: app.ServerConf.ServerURL,
|
|
|
- GitIntegration: gr,
|
|
|
- GithubInstallationID: gitAction.GitRepoID,
|
|
|
- GithubAppID: app.GithubAppConf.AppID,
|
|
|
- GitRepoName: repoSplit[1],
|
|
|
- GitRepoOwner: repoSplit[0],
|
|
|
- Repo: *app.Repo,
|
|
|
- GithubConf: app.GithubProjectConf,
|
|
|
- WebhookToken: release.WebhookToken,
|
|
|
- ProjectID: uint(projID),
|
|
|
- ReleaseName: name,
|
|
|
- GitBranch: gitAction.GitBranch,
|
|
|
- DockerFilePath: gitAction.DockerfilePath,
|
|
|
- FolderPath: gitAction.FolderPath,
|
|
|
- ImageRepoURL: gitAction.ImageRepoURI,
|
|
|
- BuildEnv: cEnv.Container.Env.Normal,
|
|
|
+ ServerURL: app.ServerConf.ServerURL,
|
|
|
+ GithubOAuthIntegration: gr,
|
|
|
+ GithubInstallationID: gitAction.GitRepoID,
|
|
|
+ GithubAppID: app.GithubAppConf.AppID,
|
|
|
+ GitRepoName: repoSplit[1],
|
|
|
+ GitRepoOwner: repoSplit[0],
|
|
|
+ Repo: *app.Repo,
|
|
|
+ GithubConf: app.GithubProjectConf,
|
|
|
+ WebhookToken: release.WebhookToken,
|
|
|
+ ProjectID: uint(projID),
|
|
|
+ ReleaseName: name,
|
|
|
+ GitBranch: gitAction.GitBranch,
|
|
|
+ DockerFilePath: gitAction.DockerfilePath,
|
|
|
+ FolderPath: gitAction.FolderPath,
|
|
|
+ ImageRepoURL: gitAction.ImageRepoURI,
|
|
|
+ BuildEnv: cEnv.Container.Env.Normal,
|
|
|
}
|
|
|
|
|
|
err = gaRunner.CreateEnvSecret()
|