Skip to content

Instantly share code, notes, and snippets.

@l2fprod
Created October 7, 2018 12:53
Show Gist options
  • Save l2fprod/d4fa716681bd1d442453b29e33eed5f2 to your computer and use it in GitHub Desktop.
Save l2fprod/d4fa716681bd1d442453b29e33eed5f2 to your computer and use it in GitHub Desktop.
knative / lw / webui
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: lw-webui
namespace: default
labels:
knative.dev/type: "app"
spec:
runLatest:
configuration:
build:
serviceAccountName: lw-build-bot
source:
git:
url: https://github.com/IBM-Cloud/logistics-wizard-webui.git
revision: dev
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor
args:
- --dockerfile=/workspace/onestep.Dockerfile
- --destination=${REGISTRY}/${NAMESPACE}/lw-webui:latest
- --build-arg
- CONTROLLER_SERVICE=http://lw-controller.default.$INGRESS_DOMAIN
revisionTemplate:
spec:
container:
image: ${REGISTRY}/${NAMESPACE}/lw-webui:latest
imagePullPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment