2
0

tekton building

This commit is contained in:
2021-04-11 19:34:58 +02:00
parent 869a442efa
commit a5008eb20f

View File

@@ -26,16 +26,27 @@ spec:
default: "" default: ""
resources: resources:
inputs: inputs:
- name: openwrt-configs-git - name: openwrt-configs
type: git type: git
steps: steps:
- name: get-openwrt - name: setup
image: cr.lan/debian-kernel-build-stable image: cr.lan/debian-kernel-build-stable
script: | script: |
#!/usr/bin/env bash #!/usr/bin/env bash
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list echo 'deb-src http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/src-testing.list
echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list echo 'deb http://apt-cache.lan/deb.debian.org/debian testing main' > /etc/apt/sources.list.d/testing.list
apt update -y apt update -y
- name: openwrt-get
image: cr.lan/debian-kernel-build-stable
script: |
#!/usr/bin/env bash
if [ ! -d /usr/src/openwrt ]; then
git clone --depth=1 https://github.com/openwrt/openwrt.git /usr/src/openwrt
fi
cd /usr/src/openwrt
echo "O_VERS: $(params.version)"
git checkout $(params.version)
git pull
- name: build-openwrt - name: build-openwrt
image: cr.lan/debian-kernel-build-stable image: cr.lan/debian-kernel-build-stable
script: | script: |
@@ -44,8 +55,6 @@ spec:
echo $PATH echo $PATH
echo "res.input.ke...path: $(resources.inputs.openwrt-configs.path)" echo "res.input.ke...path: $(resources.inputs.openwrt-configs.path)"
echo "O_VERS: $(params.version)"
ls -altr /usr/src/ ls -altr /usr/src/
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \ cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
/usr/src/openwrt/.config || exit 1 /usr/src/openwrt/.config || exit 1
@@ -56,7 +65,7 @@ spec:
distcc --show-hosts distcc --show-hosts
echo "/ALL DISTCC HOSTS" echo "/ALL DISTCC HOSTS"
ls -latr /usr/lib/distcc-pump/ ls -latr /usr/lib/distcc-pump/
#distcc-pump make -j20 bindeb-pkg CC=distcc LOCALVERSION=$(params.localversion) $(params.make_flags) #distcc-pump make -j20 download world CC=distcc $(params.make_flags)
#make -j4 download world $(params.make_flags) #make -j4 download world $(params.make_flags)
workspaces: workspaces:
- name: usr-src - name: usr-src
@@ -65,13 +74,15 @@ spec:
apiVersion: tekton.dev/v1beta1 apiVersion: tekton.dev/v1beta1
kind: TaskRun kind: TaskRun
metadata: metadata:
name: build-openwrt-oxnas820 name: openwrt-oxnas820
spec: spec:
taskRef: taskRef:
name: build-openwrt name: build-openwrt
params: params:
- name: config - name: config
value: dumont.wks-ATHWIFI value: dumont.wks-ATHWIFI
- name: version
value: openwrt-19.07
resources: resources:
inputs: inputs:
- name: openwrt-configs - name: openwrt-configs