getting there, workspace needs cleanup
This commit is contained in:
@@ -7,7 +7,7 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
|
|||||||
|
|
||||||
RUN apt-get update -y &&\
|
RUN apt-get update -y &&\
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
procps build-essential dpkg-dev dpkg-cross \
|
build-essential dpkg-dev dpkg-cross \
|
||||||
devscripts make ccache distcc && \
|
devscripts make ccache distcc && \
|
||||||
apt-get remove --purge -y exim* && \
|
apt-get remove --purge -y exim* && \
|
||||||
apt-get autoremove --purge -y && \
|
apt-get autoremove --purge -y && \
|
||||||
|
|||||||
5726
espressobin-4.19
5726
espressobin-4.19
File diff suppressed because it is too large
Load Diff
@@ -18,8 +18,7 @@ spec:
|
|||||||
type: image
|
type: image
|
||||||
params:
|
params:
|
||||||
- name: url
|
- name: url
|
||||||
value: docker-registry.lan/debian-kernel-build-stable
|
value: cr.lan/debian-kernel-build-stable
|
||||||
- name:
|
|
||||||
---
|
---
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: Task
|
kind: Task
|
||||||
@@ -30,19 +29,19 @@ spec:
|
|||||||
- name: pathToContainerFile
|
- name: pathToContainerFile
|
||||||
type: string
|
type: string
|
||||||
description: The path to the dockerfile to build
|
description: The path to the dockerfile to build
|
||||||
default: $(resources.inputs.container-source.path)/Dockerfile
|
default: $(resources.inputs.kernel-configs.path)/Dockerfile
|
||||||
- name: pathToContext
|
- name: pathToContext
|
||||||
type: string
|
type: string
|
||||||
description: |
|
description: |
|
||||||
The build context used by Kaniko
|
The build context used by Kaniko
|
||||||
(https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)
|
(https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)
|
||||||
default: $(resources.inputs.container-source.path)
|
default: $(resources.inputs.kernel-configs.path)
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: container-source
|
- name: kernel-configs
|
||||||
type: git
|
type: git
|
||||||
outputs:
|
outputs:
|
||||||
- name: builtImage
|
- name: kernel-configs-builtImage
|
||||||
type: image
|
type: image
|
||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
@@ -55,9 +54,19 @@ spec:
|
|||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
args:
|
args:
|
||||||
- --dockerfile=$(params.pathToContainerFile)
|
- --dockerfile=$(params.pathToContainerFile)
|
||||||
- --destination=$(resources.outputs.builtImage.url)
|
- --destination=$(resources.outputs.kernel-configs-builtImage.url)
|
||||||
- --context=$(params.pathToContext)
|
- --context=$(params.pathToContext)
|
||||||
- --skip-tls-verify
|
- --skip-tls-verify
|
||||||
|
- name: cleanup-workspace
|
||||||
|
image: alpine:latest
|
||||||
|
command:
|
||||||
|
- rm
|
||||||
|
args:
|
||||||
|
- -rf
|
||||||
|
- /workspace/kernel-configs*
|
||||||
|
workspaces:
|
||||||
|
- name: workspace
|
||||||
|
mountPath: /workspace
|
||||||
---
|
---
|
||||||
apiVersion: tekton.dev/v1beta1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: TaskRun
|
kind: TaskRun
|
||||||
@@ -72,13 +81,18 @@ spec:
|
|||||||
value: Dockerfile
|
value: Dockerfile
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: container-source
|
- name: kernel-configs
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: debian-kernel-build-git
|
name: debian-kernel-build-git
|
||||||
outputs:
|
outputs:
|
||||||
- name: builtImage
|
- name: kernel-configs-builtImage
|
||||||
resourceRef:
|
resourceRef:
|
||||||
name: debian-kernel-build-image
|
name: debian-kernel-build-image
|
||||||
|
# workspaces:
|
||||||
|
# - name: workspace
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: tektoncd-workspaces
|
||||||
|
# subPath: workspaces
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user