Skip to content

Instantly share code, notes, and snippets.

@jwntrs
Created November 16, 2020 15:37
Show Gist options
  • Save jwntrs/1432dc7cd534c38097cc924dae3ea2f5 to your computer and use it in GitHub Desktop.
Save jwntrs/1432dc7cd534c38097cc924dae3ea2f5 to your computer and use it in GitHub Desktop.
apiVersion: experimental.kontinue.io/v1
kind: Workflow
metadata:
name: app
spec:
sources:
- name: repo
sourceRefs:
- name: app
kind: GitSource
apiVersion: experimental.kontinue.io/v1
- name: builder
sourceRefs:
- name: builder-base
kind: RegistrySource
apiVersion: experimental.kontinue.io/v1
steps:
- name: build
sources: [repo, builder]
templates:
- template: |-
kind: Build
apiVersion: kpack.io/v1alpha1
metadata:
generateName: 'app-'
spec:
tags: [ 'kontinue/app' ]
serviceAccount: service-account
builder:
image: '{{ .Sources.builder.url }}@{{ .Sources.builder.revision }}'
source:
git:
url: 'https://github.com/{{ .Sources.repo.url }}'
revision: '{{ .Sources.repo.revision }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment