Trying hard to get this running...
This commit is contained in:
@@ -28,6 +28,9 @@ spec:
|
|||||||
inputs:
|
inputs:
|
||||||
- name: openwrt-configs
|
- name: openwrt-configs
|
||||||
type: git
|
type: git
|
||||||
|
workspaces:
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /usr/src/openwrt/tmp
|
||||||
steps:
|
steps:
|
||||||
- name: openwrt-get
|
- name: openwrt-get
|
||||||
resources:
|
resources:
|
||||||
@@ -64,6 +67,7 @@ spec:
|
|||||||
CCACHE_DIR=$(echo staging_dir/target-*)/ccache ccache -s
|
CCACHE_DIR=$(echo staging_dir/target-*)/ccache ccache -s
|
||||||
ls -la .
|
ls -la .
|
||||||
export FORCE_UNSAFE_CONFIGURE=1
|
export FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
export IGNORE_ERRORS=1
|
||||||
### cleanup
|
### cleanup
|
||||||
#make clean
|
#make clean
|
||||||
#./scripts/feeds clean -a
|
#./scripts/feeds clean -a
|
||||||
@@ -121,7 +125,7 @@ spec:
|
|||||||
resourceRef:
|
resourceRef:
|
||||||
name: openwrt-configs-git
|
name: openwrt-configs-git
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: usr-src
|
- name: usr-src
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: tektoncd-workspaces
|
claimName: tektoncd-workspaces
|
||||||
subPath: usr_src
|
subPath: usr_src
|
||||||
@@ -1,75 +1,23 @@
|
|||||||
apiVersion: tekton.dev/v1alpha1
|
apiVersion: tekton.dev/v1beta1
|
||||||
kind: PipelineResource
|
kind: PipelineRun
|
||||||
metadata:
|
metadata:
|
||||||
name: openwrt-configs-git
|
name: img-debian-stable-openwrt-build
|
||||||
spec:
|
spec:
|
||||||
type: git
|
pipelineRef:
|
||||||
|
name: kaniko-pipeline
|
||||||
params:
|
params:
|
||||||
- name: revision
|
- name: git-url
|
||||||
value: master
|
|
||||||
- name: url
|
|
||||||
value: http://git-ui.lan/chaos/openwrt-configs.git
|
value: http://git-ui.lan/chaos/openwrt-configs.git
|
||||||
---
|
- name: git-revision
|
||||||
apiVersion: tekton.dev/v1alpha1
|
value: master
|
||||||
kind: PipelineResource
|
- name: path-to-image-context
|
||||||
metadata:
|
value: ./
|
||||||
name: img-debian-stable-openwrt-build
|
- name: path-to-dockerfile
|
||||||
spec:
|
|
||||||
type: image
|
|
||||||
params:
|
|
||||||
- name: url
|
|
||||||
value: cr.lan/debian-stable-openwrt-build
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: Task
|
|
||||||
metadata:
|
|
||||||
name: build-debian-stable-openwrt-build
|
|
||||||
spec:
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)/Dockerfile
|
|
||||||
- name: pathToContext
|
|
||||||
type: string
|
|
||||||
default: $(resources.inputs.source.path)
|
|
||||||
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
|
|
||||||
---
|
|
||||||
apiVersion: tekton.dev/v1beta1
|
|
||||||
kind: TaskRun
|
|
||||||
metadata:
|
|
||||||
name: img-debian-stable-openwrt-build
|
|
||||||
spec:
|
|
||||||
taskRef:
|
|
||||||
name: build-debian-stable-openwrt-build
|
|
||||||
params:
|
|
||||||
- name: pathToContainerFile
|
|
||||||
value: Dockerfile
|
value: Dockerfile
|
||||||
resources:
|
- name: image-name
|
||||||
inputs:
|
value: cr.lan/debian-stable-openwrt-build
|
||||||
- name: source
|
workspaces:
|
||||||
resourceRef:
|
- name: git-source
|
||||||
name: openwrt-configs-git
|
persistentVolumeClaim:
|
||||||
outputs:
|
claimName: tektoncd-workspaces
|
||||||
- name: builtImage
|
subPath: tekton/debian-stable-openwrt-build
|
||||||
resourceRef:
|
|
||||||
name: img-debian-stable-openwrt-build
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user