apps (some of them)
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -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 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) = {
|
local build(dir, package) = {
|
||||||
kind: 'pipeline',
|
kind: 'pipeline',
|
||||||
type: 'docker',
|
type: 'docker',
|
||||||
@@ -26,5 +26,11 @@ local build(dir, package) = {
|
|||||||
std.flattenArrays([ [
|
std.flattenArrays([ [
|
||||||
build('_CI-CD', pkg)
|
build('_CI-CD', pkg)
|
||||||
for pkg in packages
|
for pkg in packages
|
||||||
] ])
|
|
||||||
|
] + [
|
||||||
|
build('apps', app)
|
||||||
|
for app in apps
|
||||||
|
]
|
||||||
|
|
||||||
|
])
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ RUN apt-get update && \
|
|||||||
dpkg-dev distcc ccache \
|
dpkg-dev distcc ccache \
|
||||||
build-essential gcc cpp g++ clang llvm
|
build-essential gcc cpp g++ clang llvm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get remove -y --purge man-db ;\
|
RUN apt-get remove -y --purge man-db ;\
|
||||||
apt-get autoremove -y --purge ;\
|
apt-get autoremove -y --purge ;\
|
||||||
apt-get clean -y ;\
|
apt-get clean -y ;\
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM cr.lan/debian-stable
|
FROM cr.wks/debian-stable
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-cacher-ng && \
|
apt-cacher-ng && \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM cr.lan/debian-stable
|
FROM cr.wks/debian-stable
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
curl procps && \
|
curl procps && \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM cr.lan/debian-stable
|
FROM cr.wks/debian-stable
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM cr.lan/debian-golang-stable
|
FROM cr.wks/debian-golang-stable
|
||||||
|
|
||||||
ENV GOARCH=arm64
|
ENV GOARCH=arm64
|
||||||
ENV GOPATH=/usr/src/gopath
|
ENV GOPATH=/usr/src/gopath
|
||||||
@@ -6,5 +6,5 @@ ENV GOCACHE=/usr/src/gocache
|
|||||||
RUN go env
|
RUN go env
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
RUN go get github.com/sapcc/mosquitto-exporter
|
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
|
RUN ls -al
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user