From 81d209778a158335e0a703469021563aed06f24e Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 15 May 2022 14:11:22 +0200 Subject: [PATCH] first commit --- Dockerfile | 11 ++++++++--- drone.yml | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 drone.yml diff --git a/Dockerfile b/Dockerfile index ebe663a..dd65d3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ FROM alpine:latest -# + +LABEL org.opencontainers.image.source="https://git.sthope.dev/sthope/DockerContainer-randomPwd" +LABEL Maintainer="Sthope" +LABEL Description="Send CPU Temp via MQTT" +LABEL version="1.0.0" + ARG PUID=1000 ARG PGID=1000 -# + RUN set -xe \ && addgroup -g ${PGID} -S mosquitto \ && adduser -u ${PUID} -G mosquitto -h /mosquitto/ -D mosquitto \ @@ -11,4 +16,4 @@ RUN set -xe \ WORKDIR /workspace COPY root/defaults/temp2mqtt /workspace -CMD [ "sh", "./temp2mqtt" ] +CMD [ "sh", "./temp2mqtt" ] \ No newline at end of file diff --git a/drone.yml b/drone.yml new file mode 100644 index 0000000..f453bea --- /dev/null +++ b/drone.yml @@ -0,0 +1,16 @@ +kind: pipeline +name: default + +steps: +- name: docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: sthopeless/temp2mqtt + tags: latest + purge: false + dockerfile: Dockerfilep2 +