Skip to content

Instantly share code, notes, and snippets.

@jamesward
Created March 6, 2019 21:37
Show Gist options
  • Save jamesward/30095de35e99a97d4a831fc1338e150d to your computer and use it in GitHub Desktop.
Save jamesward/30095de35e99a97d4a831fc1338e150d to your computer and use it in GitHub Desktop.
CNCF Buildpacks Demo
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
name: hello-springboot-mvn-build
spec:
source:
git:
url: https://github.com/jamesward/hello-springboot-mvn.git
revision: master
template:
name: buildpacks-cnb
kind: BuildTemplate
arguments:
- name: IMAGE
value: gcr.io/none-219021/hello-springboot-mvn-knative
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: hello-springboot-mvn-service
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: gcr.io/none-219021/hello-springboot-mvn-knative
---
apiVersion: build.knative.dev/v1alpha1
kind: Build
metadata:
name: hello-nodejs-express-build
spec:
source:
git:
url: https://github.com/jamesward/hello-node_js-express.git
revision: master
template:
name: buildpacks-cnb
kind: BuildTemplate
arguments:
- name: IMAGE
value: gcr.io/none-219021/hello-node_js-express
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: hello-nodejs-express-service
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: gcr.io/none-219021/hello-node_js-express
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment