apps (some of them)
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2023-12-15 18:51:23 +01:00
parent 1815e60a37
commit 13898378cd
7 changed files with 14 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
local dirs = ['_CI-CD'];
local dirs = ['_CI-CD', 'apps'];
local packages = ['debian-stable','debian-testing','debian-stable-build-essential','debian-golang','debian-stable-php-fpm','distcc'];
local apps = ['apt-cacher-ng', 'curl', 'mosquitto']
local build(dir, package) = {
kind: 'pipeline',
type: 'docker',
@@ -26,5 +26,11 @@ local build(dir, package) = {
std.flattenArrays([ [
build('_CI-CD', pkg)
for pkg in packages
] ])
] + [
build('apps', app)
for app in apps
]
])

View File

@@ -6,8 +6,6 @@ RUN apt-get update && \
dpkg-dev distcc ccache \
build-essential gcc cpp g++ clang llvm
RUN apt-get remove -y --purge man-db ;\
apt-get autoremove -y --purge ;\
apt-get clean -y ;\

View File

@@ -1,4 +1,4 @@
FROM cr.lan/debian-stable
FROM cr.wks/debian-stable
RUN apt-get update && apt-get install -y \
apt-cacher-ng && \

View File

@@ -1,4 +1,4 @@
FROM cr.lan/debian-stable
FROM cr.wks/debian-stable
RUN apt-get update && apt-get install -y \
curl procps && \

View File

@@ -1,4 +1,4 @@
FROM cr.lan/debian-stable
FROM cr.wks/debian-stable
RUN apt-get update && \
apt-get install -y --no-install-recommends \

View File

@@ -1,4 +1,4 @@
FROM cr.lan/debian-golang-stable
FROM cr.wks/debian-golang-stable
ENV GOARCH=arm64
ENV GOPATH=/usr/src/gopath
@@ -6,5 +6,5 @@ ENV GOCACHE=/usr/src/gocache
RUN go env
WORKDIR /usr/src
RUN go get github.com/sapcc/mosquitto-exporter
RUN make j4 build CGO_ENABLED=0
RUN make -j4 build CGO_ENABLED=0
RUN ls -al

View File

@@ -1,23 +0,0 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: img-mosquitto
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: apps/mosquitto
- name: path-to-dockerfile
value: apps/mosquitto/Dockerfile
- name: image-name
value: cr.lan/mosquitto
workspaces:
- name: git-source
persistentVolumeClaim:
claimName: tektoncd-workspaces
subPath: tekton/mosquitto