update
This commit is contained in:
27
sample-build/02-task-build.yaml
Normal file
27
sample-build/02-task-build.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: build-image
|
||||
namespace: tekton-demo
|
||||
spec:
|
||||
params:
|
||||
- name: IMAGE
|
||||
type: string
|
||||
description: Image name to build
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: gcr.io/kaniko-project/executor:latest
|
||||
args:
|
||||
- "--dockerfile=/workspace/source/Dockerfile"
|
||||
- "--context=/workspace/source/"
|
||||
- "--destination=$(params.IMAGE)"
|
||||
volumeMounts:
|
||||
- name: docker-config
|
||||
mountPath: /kaniko/.docker
|
||||
workspaces:
|
||||
- name: source
|
||||
volumes:
|
||||
- name: docker-config
|
||||
secret:
|
||||
secretName: harbor-dockerconfig
|
||||
|
Reference in New Issue
Block a user