mirror of https://github.com/knative/docs.git
26 lines
630 B
YAML
26 lines
630 B
YAML
apiVersion: serving.knative.dev/v1alpha1
|
|
kind: Service
|
|
metadata:
|
|
name: app-from-source
|
|
namespace: default
|
|
spec:
|
|
runLatest:
|
|
configuration:
|
|
build:
|
|
source:
|
|
git:
|
|
url: https://github.com/mchmarny/simple-app.git
|
|
revision: master
|
|
template:
|
|
name: kaniko
|
|
arguments:
|
|
- name: IMAGE
|
|
value: &image rgreggwa/app-from-source:latest
|
|
revisionTemplate:
|
|
spec:
|
|
container:
|
|
image: *image
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: TARGET
|
|
value: "Hello sample app!" |