{"id":13452413,"url":"https://github.com/knative/build-templates","last_synced_at":"2025-03-23T19:34:19.629Z","repository":{"id":96175536,"uuid":"130398025","full_name":"knative/build-templates","owner":"knative","description":"A library of build templates.","archived":true,"fork":false,"pushed_at":"2019-09-05T22:36:54.000Z","size":216,"stargazers_count":184,"open_issues_count":26,"forks_count":68,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-07-31T07:18:54.808Z","etag":null,"topics":["build","containers","kubernetes","template"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knative.png","metadata":{"files":{"readme":"README-old.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-04-20T18:11:39.000Z","updated_at":"2024-06-01T11:47:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"50e76d77-a87e-4cb2-b941-461bfbfe68f2","html_url":"https://github.com/knative/build-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knative%2Fbuild-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knative%2Fbuild-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knative%2Fbuild-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knative%2Fbuild-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knative","download_url":"https://codeload.github.com/knative/build-templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221900938,"owners_count":16898993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","containers","kubernetes","template"],"created_at":"2024-07-31T07:01:23.490Z","updated_at":"2024-10-28T18:31:17.834Z","avatar_url":"https://github.com/knative.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Knative Build Templates\n\n:rotating_light: **NOTE: Knative Build is\n[deprecated](https://github.com/knative/build/issues/614) in favor of [Tekton\nPipelines](https://github.com/tektoncd/pipeline). There are no plans to\nproduce future releases of this component.** :rotating_light:\n\n**This version of README.md is provided for historical purposes.**\n\nThis repository contains a library of\n`BuildTemplate` [resources](https://github.com/knative/docs/blob/master/build/build-templates.md) which are designed to be reusable by many applications.\n\nEach build template is in a separate directory along with a README.md and a Kubernetes manifest, so you can choose which build templates to install on your cluster.\n\n## Build Templates Kinds\n\nThere are two kinds of build templates:\n\n 1. `ClusterBuildTemplates` with a Cluster scope\n 1. `BuildTemplates` with a Namespace scope\n\n A default kind of `BuildTemplate` is used if the field `kind` is not set.\n\n## Using Build Templates\n\nFirst, install a build template onto your cluster:\n\n```\n$ kubectl apply -f buildpack.yaml\nbuildtemplate \"buildpack\" created\n```\n\nYou can see which build templates are installed using `kubectl` as well:\n\n```\n$ kubectl get buildtemplates\nNAME       AGE\nbuildpack  3s\n```\n\nOR\n\n```\n$ kubectl get clusterbuildtemplates\nNAME        AGE\nbuildpack   9s\n```\n\nWith the build template installed, you can define a build that uses that\ntemplate, being sure to provide values for required parameters:\n\n```\napiVersion: build.knative.dev/v1alpha1\nkind: Build\nmetadata:\n  name: buildpack-build\nspec:\n  source:\n    git:\n      url: https://github.com/my-user/my-repo\n      revision: master\n  template:\n    name: buildpack\n    kind: BuildTemplate # (or ClusterBuildTemplate)\n    arguments:\n    - name: IMAGE\n      value: us.gcr.io/my-project/my-app\n```\n\nNext, create the build you defined:\n\n```\n$ kubectl apply -f build.yaml\nbuild \"buildpack-build\" created\n```\n\nYou can check the status of the build using `kubectl`:\n\n```\nkubectl get build buildpack-build -o yaml\n```\n\n## Contributing and Support\n\nIf you want to contribute to this repository, please see our [contributing](./CONTRIBUTING.md) guidelines.\n\nIf you are looking for support, enter an [issue](https://github.com/knative/build-templates/issues/new) or join our [Slack workspace](https://knative.slack.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknative%2Fbuild-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknative%2Fbuild-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknative%2Fbuild-templates/lists"}