chmod?
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-16 14:38:00 +01:00
parent 9ce1a6b610
commit 0075dac22d
2 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
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-golang'];
#local packages = ['debian-stable', 'debian-testing', 'debian-stable-build-essential', 'debian-golang', 'debian-stable-php-fpm', 'distcc'];
local packages = ['debian-golang'];
local apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter'];
#local apps = ['mosquitto-prometheus-exporter'];
#local apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter'];
local apps = ['mosquitto-prometheus-exporter'];
local build(dir, package) = {
name: '%(package)s' % { package: package },

View File

@@ -8,10 +8,11 @@ WORKDIR /usr/src
RUN go install github.com/sapcc/mosquitto-exporter@latest
#RUN go mod download
FROM scratch
FROM cr.wks/debian-stable
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
COPY --from=build --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
RUN ls -la /
EXPOSE 9234