1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-26 06:23:37 +00:00
catalog/task/makisu/0.1/makisu.yaml
PuneetPunamiya b42efe207a Modifies makisu task according to the new reorg proposal
Changes include:
  - adds version label
  - adds a minimum pipeline versions supported by the task
  - adds tags for task
  - modified description to add a summary

This patch also moves the makisu files to the task directory
and modifies the path for install task command in readme file

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-10 22:06:57 +01:00

58 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: makisu
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: image-build
spec:
description: >-
This Task builds source into a container image using ubers
makisu tool.
Makisu is a fast and flexible Docker image build tool designed for unprivileged
containerized environments such as Mesos or Kubernetes. makisu uses a registry
configuration which should be stored as a secret in Kubernetes.
params:
- name: CONTEXTPATH
description: Path to the build context.
default: /workspace
- name: PUSH_REGISTRY
description: Registry to push image to.
default: index.docker.io
- name: REGISTRY_SECRET
description: Secret containing information about the used regsitry.
default: docker-registry-config
workspaces:
- name: source
resources:
outputs:
- name: image
type: image
steps:
- name: build-and-push
image: gcr.io/makisu-project/makisu:v0.1.10
workingDir: $(workspaces.source.path)
command:
- /makisu-internal/makisu
- build
- --push=$(params.PUSH_REGISTRY)
- --registry-config=/registry-config
- --modifyfs=true
- --tag=$(resources.outputs.image.url)
- --registry-config=/registry-config/registry.yaml
- $(params.CONTEXTPATH)
env:
- name: DOCKER_CONFIG
value: /builder/home/.docker
volumeMounts:
- name: registry-config
mountPath: /registry-config
volumes:
- name: registry-config
secret:
secretName: $(params.REGISTRY_SECRET)