serverless-components / knative-build

Instantly create and manage Knative build definitions running on top of Tekton Pipelines in your Kubernetes cluster.

Home Page:https://serverless.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

knative-build

Instantly create and manage Knative build definitions running on top of Tekton Pipelines in your Kubernetes cluster with Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

1. Install

$ npm install -g serverless

2. Create

Just create a serverless.yml file

$ touch serverless.yml

Make sure that you have generated your Kubeconfig file via kubectl.

3. Configure

# serverless.yml
org: acme
app: todo
name: todo-knative-build

component: knative-build@dev

inputs:
  # use one of the following 2 source definitions
  gitUrl: git@acme.com:engineering/accounting-taxes.git#master # supports `git` or `https` URLs
  bucketUrl: http://acme.s3-us-east-1.amazonaws.com/accounting-taxes # AWS S3 or Google Cloud Storage bucket
  dockerfile: '.' # the Dockerfile located within the source code
  context: '.' # the build context located within the source code
  tag: latest # default is `latest`
  registryAddress: 'https://container-registry.acme.com' # default is `'https://index.docker.io/v1'`
  environment: # optional environment variables
    STAGE: prod

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.

About

Instantly create and manage Knative build definitions running on top of Tekton Pipelines in your Kubernetes cluster.

https://serverless.com


Languages

Language:JavaScript 91.8%Language:Nix 8.2%