migrated base images to pipeline runs
This commit is contained in:
@@ -1,85 +0,0 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
|
||||||
kind: PipelineResource
|
|
||||||
metadata:
|
|
||||||
name: chaos-kubernetes-git
|
|
||||||
spec:
|
|
||||||
type: git
|
|
||||||
params:
|
|
||||||
- name: revision
|
|
||||||
value: master
|
|
||||||
- name: url
|
|
||||||
value: http://git-ui.lan/chaos/kubernetes.git
|
|
||||||
- name: submodules
|
|
||||||
value: "false"
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1alpha1
|
|
||||||
kind: PipelineResource
|
|
||||||
metadata:
|
|
||||||
name: img-debian-testing
|
|
||||||
spec:
|
|
||||||
type: image
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: cr.lan/debian-testing
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: build-debian-testing
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)/_CI-CD/debian-testing/Dockerfile
|
|
||||||
- name: pathToContext
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)/_CI-CD/debian-testing
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: source
|
|
||||||
type: git
|
|
||||||
outputs:
|
|
||||||
- name: builtImage
|
|
||||||
type: image
|
|
||||||
steps:
|
|
||||||
- name: build-and-push
|
|
||||||
image: gcr.io/kaniko-project/executor:arm64
|
|
||||||
command:
|
|
||||||
- /kaniko/executor
|
|
||||||
args:
|
|
||||||
- --dockerfile=$(params.pathToContainerFile)
|
|
||||||
- --destination=$(resources.outputs.builtImage.url)
|
|
||||||
- --context=$(params.pathToContext)
|
|
||||||
- --snapshotMode=redo
|
|
||||||
- --skip-tls-verify
|
|
||||||
#workspaces:
|
|
||||||
# - name: workspace
|
|
||||||
# mountPath: /workspace
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: TaskRun
|
|
||||||
metadata:
|
|
||||||
name: img-debian-testing
|
|
||||||
spec:
|
|
||||||
taskRef:
|
|
||||||
name: build-debian-testing
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
value: Dockerfile
|
|
||||||
resources:
|
|
||||||
inputs:
|
|
||||||
- name: source
|
|
||||||
resourceRef:
|
|
||||||
name: chaos-kubernetes-git
|
|
||||||
outputs:
|
|
||||||
- name: builtImage
|
|
||||||
resourceRef:
|
|
||||||
name: img-debian-testing
|
|
||||||
# workspaces:
|
|
||||||
# - name: workspace
|
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: tektoncd-workspaces
|
|
||||||
# subPath: workspaces
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
23
_CI-CD/debian-testing/tekton.yaml
Normal file
23
_CI-CD/debian-testing/tekton.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: tekton.dev/v1beta1
|
||||||
|
kind: PipelineRun
|
||||||
|
metadata:
|
||||||
|
name: img-debian-testing
|
||||||
|
spec:
|
||||||
|
pipelineRef:
|
||||||
|
name: kaniko-pipeline
|
||||||
|
params:
|
||||||
|
- name: git-url
|
||||||
|
value: http://git-ui.lan/chaos/kubernetes.git
|
||||||
|
- name: git-revision
|
||||||
|
value: master
|
||||||
|
- name: path-to-image-context
|
||||||
|
value: _CI-CD/debian-testing
|
||||||
|
- name: path-to-dockerfile
|
||||||
|
value: _CI-CD/debian-testing/Dockerfile
|
||||||
|
- name: image-name
|
||||||
|
value: cr.lan/debian-testing
|
||||||
|
workspaces:
|
||||||
|
- name: git-source
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: tektoncd-workspaces
|
||||||
|
subPath: usr_src/tekton-debian-testing
|
||||||
Reference in New Issue
Block a user