drone deploy ot-recorder
This commit is contained in:
parent
173c769700
commit
39dfe13dfe
28
.drone.yml
28
.drone.yml
@ -23,3 +23,31 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: build_and_publish_ot-recorder
|
||||||
|
image: plugins/docker:linux-amd64
|
||||||
|
settings:
|
||||||
|
dockerfile: ot-recorder/Dockerfile
|
||||||
|
context: ot-recorder
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
registry: docker.asperti.com
|
||||||
|
repo: docker.asperti.com/paspo/hassio-ot-recorder
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- 0.2.2
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- push
|
@ -1,4 +1,4 @@
|
|||||||
ARG BUILD_FROM
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2
|
||||||
FROM $BUILD_FROM AS builder
|
FROM $BUILD_FROM AS builder
|
||||||
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
@ -6,15 +6,15 @@ ENV LANG C.UTF-8
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
abuild linux-headers musl-dev mosquitto-dev \
|
abuild linux-headers musl-dev mosquitto-dev \
|
||||||
lmdb-dev curl-dev libconfig-dev gcc make libsodium-dev && \
|
lmdb-dev curl-dev libconfig-dev gcc make libsodium-dev && \
|
||||||
wget -q https://github.com/owntracks/recorder/archive/0.8.4.tar.gz -O - | tar xvzC /tmp
|
wget -q https://github.com/owntracks/recorder/archive/0.8.7.tar.gz -O - | tar xvzC /tmp
|
||||||
|
|
||||||
COPY config.mk /tmp/recorder-0.8.4/
|
COPY config.mk /tmp/recorder-0.8.7/
|
||||||
|
|
||||||
RUN cd /tmp/recorder-0.8.4/ && \
|
RUN cd /tmp/recorder-0.8.7/ && \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
||||||
ARG BUILD_FROM
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:10.0.2
|
||||||
FROM $BUILD_FROM
|
FROM $BUILD_FROM
|
||||||
|
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
@ -25,9 +25,9 @@ RUN apk -U --no-cache upgrade && \
|
|||||||
|
|
||||||
EXPOSE 8083
|
EXPOSE 8083
|
||||||
|
|
||||||
COPY --from=builder /tmp/recorder-0.8.4/ocat /usr/sbin/
|
COPY --from=builder /tmp/recorder-0.8.7/ocat /usr/sbin/
|
||||||
COPY --from=builder /tmp/recorder-0.8.4/ot-recorder /usr/sbin/
|
COPY --from=builder /tmp/recorder-0.8.7/ot-recorder /usr/sbin/
|
||||||
COPY --from=builder /tmp/recorder-0.8.4/docroot /var/spool/owntracks/recorder/htdocs
|
COPY --from=builder /tmp/recorder-0.8.7/docroot /var/spool/owntracks/recorder/htdocs
|
||||||
COPY run.sh /
|
COPY run.sh /
|
||||||
RUN chmod a+x /run.sh
|
RUN chmod a+x /run.sh
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "Owntracks Recorder",
|
"name": "Owntracks Recorder",
|
||||||
"url": "https://git.asperti.com/paspo/hassio-addons",
|
"url": "https://git.asperti.com/paspo/hassio-addons",
|
||||||
"version": "0.2.1",
|
"image": "docker.asperti.com/paspo/hassio-ot-recorder",
|
||||||
|
"version": "0.2.2",
|
||||||
"slug": "ot-recorder",
|
"slug": "ot-recorder",
|
||||||
"description": "Owntracks Recorder - connects to your mqtt broker and consumes owntracks locations",
|
"description": "Owntracks Recorder - connects to your mqtt broker and consumes owntracks locations",
|
||||||
"startup": "before",
|
"startup": "before",
|
||||||
|
Loading…
Reference in New Issue
Block a user