mirror of
https://github.com/not-kennethreitz/knative-for-humans.git
synced 2026-06-05 06:56:16 +00:00
37 lines
824 B
YAML
37 lines
824 B
YAML
apiVersion: build.knative.dev/v1alpha1
|
|
kind: BuildTemplate
|
|
metadata:
|
|
name: bob-builder
|
|
spec:
|
|
parameters:
|
|
- name: REGISTRY
|
|
description: The registry to push to
|
|
- name: IMAGE
|
|
description: The name of the image to push
|
|
steps:
|
|
- name: build-and-push
|
|
image: kennethreitz/bob-builder
|
|
securityContext:
|
|
privileged: true
|
|
volumeMounts:
|
|
- name: varlibdocker
|
|
mountPath: /var/lib/docker
|
|
# - name: docker-socket
|
|
# mountPath: /var/run/docker.sock
|
|
args:
|
|
- /workspace
|
|
- ${REGISTRY}/${IMAGE}
|
|
- --push
|
|
# - --allow-insecure
|
|
|
|
|
|
# As an implementation detail, this template mounts the host's daemon socket.
|
|
volumes:
|
|
|
|
- name: varlibdocker
|
|
emptyDir: {}
|
|
# - name: docker-socket
|
|
# hostPath:
|
|
# path: /var/run/docker.sock
|
|
# type: Socket
|