add forgeinstance

This commit is contained in:
Lunny Xiao authored and Jason Song committed 2022-11-24 15:37:40 +08:00
1 parent 9c7d2be7c6
commit 378966e45f
7 files changed
+28 -22

No files matched your search

+2 -2
View File
@@ -86,11 +86,11 @@ type Task struct {
}
// NewTask creates a new task
func NewTask(buildID int64, client client.Client) *Task {
func NewTask(forgeInstance string, buildID int64, client client.Client) *Task {
task := &Task{
Input: &TaskInput{
reuseContainers: true,
ForgeInstance: "gitea",
ForgeInstance: forgeInstance,
},
BuildID: buildID,