Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically trigger a build after creation of image stream & Build config #23

Open
jaideepr97 opened this issue Jun 19, 2020 · 0 comments
Assignees

Comments

@jaideepr97
Copy link
Collaborator

jaideepr97 commented Jun 19, 2020

Depends on : #15

kodo build should automatically trigger a build after creation of image stream & Build config

Reference code blocks:

buildRequest := BuildRequest{
		"BuildRequest",
		"build.openshift.io/v1",
		struct {
			Name string `json:"name"`
		}{
			buildConfig,
		},
	}

req, err := http.NewRequest("POST", fmt.Sprintf("%s/apis/build.openshift.io/v1/namespaces/openshift-console/buildconfigs/%s/instantiate", openshiftAPIURL, buildConfig), requestBody)
	req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", token))
@Shraddhak22 Shraddhak22 self-assigned this Jun 23, 2020
@jaideepr97 jaideepr97 self-assigned this Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants