1
0
Fork 0
mirror of https://github.com/imjasonh/build-templates synced 2026-07-06 22:52:17 +00:00
No description
Find a file
2018-05-11 12:43:16 -04:00
bazel Fix examples (#10) 2018-05-11 12:41:08 -04:00
buildpack Fix examples (#10) 2018-05-11 12:41:08 -04:00
jib Fix examples (#10) 2018-05-11 12:41:08 -04:00
kaniko Fix examples (#10) 2018-05-11 12:41:08 -04:00
LICENSE Initial commit 2018-04-20 11:11:39 -07:00
OWNERS Add OWNERS (#2) 2018-05-03 16:30:12 -07:00
README.md Update README.md 2018-05-11 12:43:16 -04:00

Elafros Build Templates

This repository contains a library of BuildTemplate resources which are designed to be reusable by many applications.

Using Build Templates

First, install a build template onto your cluster:

$ kubectl apply -f buildpack.yaml
buildtemplate "buildpack" created

You can see which build templates are installed using kubectl as well:

$ kubectl get buildtemplates
NAME       AGE
buildpack  3s

With the build template installed, you can define a build that uses that template, being sure to provide values for required parameters:

apiVersion: build.dev/v1alpha1
kind: Build
metadata:
  name: buildpack-build
spec:
  source:
    git:
      url: https://github.com/my-user/my-repo
      branch: master
  template:
  name: buildpack
  arguments:
  - name: IMAGE
    value: us.gcr.io/my-project/my-app

Next, create the build you defined:

$ kubectl apply -f build.yaml
build "buildpack-build" created

You can check the status of the build using kubectl:

$ kubectl get build buildpack-build -oyaml