Skip to content

Instantly share code, notes, and snippets.

@VidyasagarMSC
Last active October 8, 2018 09:26
Show Gist options
  • Save VidyasagarMSC/0c4933afbb04b6213111dcd0dcfa2b4e to your computer and use it in GitHub Desktop.
Save VidyasagarMSC/0c4933afbb04b6213111dcd0dcfa2b4e to your computer and use it in GitHub Desktop.
apiVersion: build.knative.dev/v1alpha1
kind: BuildTemplate
metadata:
name: kaniko
spec:
parameters:
- name: IMAGE
description: registry.<region>.bluemix.net/<namespace>/knative-node-kaniko #replace <region> and <namespace>
- name: DOCKERFILE
description: ./Dockerfile
default: /workspace/Dockerfile
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor
args:
- --dockerfile=${DOCKERFILE}
- --destination=${IMAGE}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment